-->
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: Using two SequenceGenerators in one entity class
PostPosted: Wed Oct 04, 2006 9:50 pm 
Newbie

Joined: Sun Jul 09, 2006 10:26 pm
Posts: 3
Hi, all

I need two fields to be generataed by two different sequence generators, but I can't add two @SequenceGenerator annotations to the class (because of "Duplicate annotation @SequenceGenerator"). Is it possible to do and how?

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 04, 2006 11:16 pm 
Regular
Regular

Joined: Tue Sep 26, 2006 11:37 am
Posts: 115
Location: Sacramento, CA
Are these native sequence generator in the database? In this case you can declare just one and the database will automatically take care of both. One way or another it may be pretty simple to achieve the desired result behind hibernate's back...

I may be missing something ... let me know ... :)

Marius


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.