-->
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: Override increment id generator
PostPosted: Fri Mar 06, 2009 1:08 pm 
Newbie

Joined: Fri Mar 06, 2009 12:58 pm
Posts: 2
Hello,

I have an entity object which have an id with increment generator. in some cases i want to override this generator if the id is being passed. Is it possible to achieve this ? and which generator class should i use ?

Thanks !


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 06, 2009 10:42 pm 
Newbie

Joined: Mon Nov 05, 2007 2:08 pm
Posts: 4
Looking through the list of available generators I don't see anything that looks like it would support this. It's probably something you'll have to do at the application level. Or maybe think about implementing a custom IdentifierGenerator


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.