Re: [hibernate-dev] Tuning ORM memory consumption [HHH-8682]

2013-11-14 Thread Sanne Grinovero
On 14 November 2013 14:52, Steve Ebersole wrote: > Adding tenantIdentifier to persister is absolutely wrong. Think of > persisters as scoped to the SessionFactory while tenancy is per Session. I get that, I'm not suggesting to add it to _the_ persister of that entity. I'm proposing to create a n

Re: [hibernate-dev] Tuning ORM memory consumption [HHH-8682]

2013-11-14 Thread Steve Ebersole
Adding tenantIdentifier to persister is absolutely wrong. Think of persisters as scoped to the SessionFactory while tenancy is per Session. Now because an EntityKey is logically per session as well we may be able to remove from there. Again *logically*. I'll have to look at the ways in which En