-->
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.  [ 3 posts ] 
Author Message
 Post subject: to generate a custom generator id
PostPosted: Wed Jul 26, 2006 1:52 am 
Newbie

Joined: Tue Jul 25, 2006 8:50 am
Posts: 8
I want to create custom generator id class for my oracle database and the hibernate will get the highest key id value from a table and will increment that value and return that incremented value....
i dont want to use incement generator or native generator.how can i do it????

_________________
mks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 27, 2006 1:01 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
Have you looked at these examples of custom generators from the wiki?:

http://www.hibernate.org/170.html
http://www.hibernate.org/296.html

_________________
nathan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 2:24 am 
Newbie

Joined: Tue Jul 25, 2006 8:50 am
Posts: 8
can i do it without creating any sequence???

_________________
mks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.