-->
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: Proxy usage with Surrogate Keys
PostPosted: Mon Nov 10, 2003 2:17 am 
Newbie

Joined: Mon Oct 13, 2003 7:50 am
Posts: 7
Hi All,

Has any one used Hibernate with Surrogate Keys? I would like to know about the strategy about using the cache when using Surrogate Keys. In our application, the queries are primarily based on the business keys, we are not able to efficiently use the caching feature that hibernate privides.

Younus


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2003 4:12 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
In Hibernate 2.0, the cache is only used for resolving associations, for iterate() and for load(), so it makes no difference if you use surrogate ids. In 2.1, we have a full query cache so, again, it will make no difference.


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.