-->
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: Multiple sequence?
PostPosted: Tue May 04, 2010 6:25 am 
Newbie

Joined: Tue May 04, 2010 5:21 am
Posts: 6
Hello,
I have a table of which two attributes are set from sequence.
Now how can I set both values from Hibernate ?

Can I use generator element for property tag.
One of them is primary key so I will mention the sequence in generator tag under ID tag.
But what about other property which also uses sequence?How should I mention sequence for that property in Hibernate XML file.

Thank You.


Top
 Profile  
 
 Post subject: Re: Multiple sequence?
PostPosted: Wed May 05, 2010 3:35 am 
Newbie

Joined: Tue May 04, 2010 5:21 am
Posts: 6
Now I doubt whether it is possible or not?
I have searched a lot but could not find the solution.
Should I explicitly fetch the data from sequence for the property ?
I guess this is the only option I am left with..

Please somebody Help.

Thank You


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.