-->
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: First/Second Level cache by non-primary key identifiers
PostPosted: Thu Aug 24, 2006 7:47 am 
Newbie

Joined: Mon Jun 19, 2006 5:35 am
Posts: 14
Hi all,

I am using [b]Hibernate version: 3.1.2[/b].

My database is populated by an import. All primary keys are auto-generated by Hibernate/the database, but there is also a unique ID for each record which comes from the import data.

The application sometimes needs to refer to the entities via the external unique id. To increase performance of the application, a cache of the entities by external id - not primary key - would be helpful, probably as a first-level cache. Second-level cache would be fine also.

As far as I understand, the hibernate caches are always by primary key.

Of course, it is always possible to build such a cache outside of Hibernate, but I am wondering whether it is possible within hibernate.

Any comments on this ?

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.