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: one-to-one relationship always drops "was already cache
PostPosted: Wed Nov 16, 2005 11:27 am 
Beginner
Beginner

Joined: Wed Aug 27, 2003 7:53 am
Posts: 27
I've enabled second level cache using EHCache on Hibernate 3.1rc2. My testcase shows that if a one-on-one relationship is built using the alternate way (with a many-to-one property-ref on one side and one-to-one unique on the other), Hibernate always tries to load the referred object from the database first, and discovers that the object was already cached right after. Both test objects has cache read-write configured in the mapping files.

Anyone explains why this is happening? Is that a bug?

_________________
.Digital.Yearning.for.Networked.Assassination.and.Xenocide


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.