AdditionalCriteria in ServerSession [message #1076442] |
Wed, 31 July 2013 12:05 |
Thomas Kratz Messages: 165 Registered: July 2009 |
Senior Member |
|
|
HI again.
As making progress with eclipselink features, I found that when I try to use AdditionalCriteria on my Entities, I have to pass the relevant property on creation of my EntityManager. Thats fine so far, but when I try to lazy load after the em has been closed, that seems to be done by the ServerSession that doesn't know of the property (which makes sense somehow) and simply fails therefore, as it complains about the property not having been set. I would be able to provide the property on a threadlocal basis, but I wonder if there is any possibillity to make this available to the ServerSession. btw, I had similar trouble when playing with MultiTenant/Discriminator approach.
Is there a chance to solve this? Then I could rely on the query cache even if I'm running multitenant.
|
|
|
Powered by
FUDForum. Page generated in 0.24296 seconds