-->
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: How to use multiple sequence in single table
PostPosted: Mon May 10, 2010 3:32 am 
Newbie

Joined: Mon May 10, 2010 3:22 am
Posts: 2
Hello,
I am new to hibernate.
I have table with multiple ids, and we are using muliple sequence for these ids.
Ex. table1( id numeric, id1 numeric, name varchar(50))

Following are sequences for id and id1.
sequence table1_id_seq for id
sequence table1_id1_seq for id1.

we have only one primary key that is id.

how can i create mapping xml for table1?


Top
 Profile  
 
 Post subject: Re: How to use multiple sequence in single table
PostPosted: Mon May 10, 2010 4:15 am 
Newbie

Joined: Tue May 04, 2010 8:15 am
Posts: 5
Check this link:

http://docs.jboss.org/hibernate/core/3. ... ompositeid


Top
 Profile  
 
 Post subject: Re: How to use multiple sequence in single table
PostPosted: Mon May 10, 2010 4:21 am 
Newbie

Joined: Mon May 10, 2010 3:22 am
Posts: 2
thanks for your quick reply.
but how to use <generator in <composite-id or in <key-property?


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.