-->
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.  [ 4 posts ] 
Author Message
 Post subject: generating sequence
PostPosted: Thu May 24, 2007 2:52 am 
Newbie

Joined: Tue Apr 24, 2007 5:57 am
Posts: 9
Hi All,
Normally <id> tag is considered as PK and there are various generator class for the above.

My doubt is, if i want to attribute more of sequence to another filed, how to configure it in the hbm.xml file


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 3:23 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi


Did you mean composite-id


Amila


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 3:54 am 
Newbie

Joined: Tue Apr 24, 2007 5:57 am
Posts: 9
Ok.Let me explain my requirement.

I have 3 tables namely :
Corporation
Department
SubDepartment.

Now when each of these are created, a id is generated for each.That id is a sequence.
There are some redundant fileds that i have mapped to a seperate table called GeneralInfo.This table would contain comman information like address,email id, phone for the above tables.

How to map each of these tables with this generalinfo
Should i go for one-to-one mapping


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 4:02 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

Send your table stucture

Amila


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