-->
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: Generator class
PostPosted: Mon Oct 24, 2005 7:30 am 
Newbie

Joined: Mon Oct 24, 2005 6:43 am
Posts: 6
Hi

The org\hibernate\ce\auction\persistence\*.hbm.xml all the files are having
<generator class="sequence">


But as per the documentation:
native: picks identity, sequence or hilo depending upon the capabilities of the underlying database.

So the native is best than sequence. But is there anything specfic why the caveatemptor application has chosen sequence as a generator class.

Which generator class acts one size for all. Is there any thing I am missing.

Thanks & Regards
Ramesh


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 7:40 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please understand the documentation. You can chose whatever generator works best for you. What is in CaveatEmptor is what I thought is best for my test database. As it is alpha code, it might be even what I thought is best in the last 5 minutes.


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.