-->
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.  [ 1 post ] 
Author Message
 Post subject: With a many-to-one rel. Hib. does not go to EhCache again.
PostPosted: Thu Jul 31, 2014 11:08 am 
Newbie

Joined: Thu Jul 31, 2014 10:45 am
Posts: 3
I have employees which have a many to one relation (foreign key) with addresses (they work on a same address or something).

I create 2 employees on 1 address, and save all 3.

I also have ehcache, and their properties go in there also.

In a new session I do a get on a employee by id. The properties of the employee are found in ehcache, but of the address is in ehcache only the id of the address.

Now hibernate creates a proxy to an address, with this id. Hibernate does not go to ehcache again to see if the (properties of the) address are there. This is what I don't understand.

Thanks.


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

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.