-->
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: referencing 2 tables - HELP NEEDED !!!!
PostPosted: Wed Nov 24, 2004 10:14 am 
Newbie

Joined: Fri Oct 29, 2004 4:25 am
Posts: 7
hi there...
the following i got:

2 tables:
Code:
1.)
AProzess with the columns
ProzessID          (pk)
ProessVersion    (pk)
ProzessName

2.)
AKnoten with the columns
AKnotenID          (pk)
ProzessID           (pk)
ProzessVersion    (pk)
AKnotenName


how do i have to write the xml and the java files, to get this thing to work ?
AProzess is identified with an ID and a version (both number). AKnoten is identified as a certain Knoten (AKnotenID) of a certain Prozess (ProzessID; ProzessVersion). so aprozess has a set of aknoten...
Each time I have an AProzess i want the concerning AKnoten in it....
I want hibernate to collect the AKnoten concerning the AProzess i loaded.
The system always tells me that i cannot reference it, because the number of keyelements aint the same or it aint possible to set a null value ....

Has anyone any idea how to solve this ?
can anyone help me getting this startet ?
Any code ? Any example....
I am trying for days now.....

HELP IS DESPERATLY NEEDED !!!!

thanxs
Jens


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.