-->
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: Single class multiple IDs is this possible
PostPosted: Wed Feb 16, 2005 6:59 pm 
Newbie

Joined: Wed Feb 16, 2005 6:47 pm
Posts: 1
It seems it is not possible. But, I am wondering if I am going about this incorectly.

I have 2 Tables:

Person
Person_id
and some columns

Member
Member_id
Person_id and some columns

I am trying to make a single class Member.java which contains all of the columns of Person and Member this seems easy enough with the <join> directive. However on inserting a new Member I need to generate the IDs for both the Person and Member tables. Which I have not been able to do. Looking at the DTD and the documentation I can not see how to do this.

I am using 3.0 Beta 3. If there is a solutionr or a better way for me to do this I would appreciate any suggestions.

Craig


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.