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: Combining different primary key generation mechanisms
PostPosted: Sun Feb 25, 2007 9:46 pm 
Beginner
Beginner

Joined: Thu Oct 14, 2004 10:53 pm
Posts: 45
Our application uses the HiLo key generation to generate primary keys in the database. A plugin to our app doesn't want to use hibernate to talk to the database (just using plain old SQL). The problem is with the primary key generation, where there is a possibilty that primary keys will clash.

I'm not very familiar with how the HiLo generation strategy works. Is this really going to be a problem if we combine Hibernate's HiLo generation strategy with generating ids using plain old SQL? I'm not sure of the chances of primary keys clashing, but obviously we don't want this to happen.


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.