These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Using query cache I get an empty association
PostPosted: Sat Apr 17, 2010 12:04 am 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
Hi

I'm starting to work with the Query Cache using Hibernate 3.3.2GA. I enabled the second-level cache and the query cache and set the cacheable property to true. I do a test where I query an object with an association. The second time I query the same object I get the object but the association is empty.

Regards,

Néstor Boscán


Top
 Profile  
 
 Post subject: Re: Using query cache I get an empty association
PostPosted: Sat Apr 17, 2010 2:34 pm 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
I defined the <cache/> element for my classes and list, set and map associations. Now it works for these associations but for many-to-one associations I get the same problem, the association is null. There is no way to set the <cache/> element for many-to-one associations.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.