-->
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: Transient fields and second level cache
PostPosted: Thu Dec 01, 2011 6:12 am 
Newbie

Joined: Tue Oct 04, 2011 8:27 am
Posts: 3
Hi,
I am using second level cache and query cache with ehcache provider. I see that entities which are returned from cache have null transient fields every time. This behavior is fine for me.
Can i rely on this behavior? Does hibernate clone the cached entities(transient fields are not shared) or reuse the same entity instances?
Thanks!


Top
 Profile  
 
 Post subject: Re: Transient fields and second level cache
PostPosted: Fri Dec 02, 2011 4:06 am 
Newbie

Joined: Tue Oct 04, 2011 8:27 am
Posts: 3
I have found answer to my question here
http://grails.1312388.n4.nabble.com/Tra ... 99903.html

- No, Hibernate doesn't know about your classes, it knows about its registered metadata, so only persistent properties are cached.


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.