-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate ID Generator
PostPosted: Thu Nov 26, 2009 1:05 am 
Newbie

Joined: Sun Feb 15, 2009 8:24 am
Posts: 9
Hi Dear All,

We have three tables, Unit, Asset & LoanAsset. Unit_id & Asset_Id coming as FK and we have to insert into LoanAsset table with generate LS_Id. Look into the below records, "How can we achieve this style of ID generation"????

I will be much thankful to you for cooperation....

Primary Key = Unit_Id(fk) + Asset_Id(fk) + LS_Id

Unit_Id(fk) Asset_Id(fk) LS_Id
1 89 1
1 89 2
1 89 3

1 120 1
1 120 2

1 115 1
1 115 2
1 115 3
1 115 4

_________________
Faisal Basra


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.