-->
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: one-to-many reference from A-B and B-A
PostPosted: Sat Oct 11, 2003 8:35 pm 
Newbie

Joined: Sat Oct 11, 2003 6:34 am
Posts: 9
Hello,

i have two classes, A and B.
There is a one-to-many between A and B with a Set of Bs in A. (works fine)

Now i want to have a reference in class B to class A. (Is always null)

public class B{
private A a;
}

Is this possible?
Someone have a mapping Example?

A1
-with a Set of Bs
|
-B1-A1 (Reference to A1)
|
-B2-A1

Thanks!
Jaraz


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 11, 2003 9:49 pm 
Newbie

Joined: Sat Oct 11, 2003 6:34 am
Posts: 9
Sorry, i found the chapter:
8.2 Bidirectional one to many in the Manual.

Thats exactly what i need. And it's working.
Next time i take a deeper look into the manual.

Jaraz

PS: I'am working with hibernate since 2 days, it's a real great tool. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 12, 2003 6:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Make sure you read tha parent child section of the documentation.


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.