-->
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.  [ 2 posts ] 
Author Message
 Post subject: Something that's not clear to me...
PostPosted: Wed May 12, 2004 8:09 pm 
Beginner
Beginner

Joined: Sun Feb 08, 2004 4:09 pm
Posts: 46
Hi ppl,


I haven't used Hibernate yet, and I'm just reading the documents.

What I still didn't get is, when you have, for example:

0..1 to 0..* relantionship between two classes, A and B.

I instantiate A and the Bs and set the relantionship between them.

When I save A, will Hibernate see that there are new instances of B
relating to A and save all the Bs too?

Thanks in advance!
Thiago Souza


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 12:35 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the "Parent/Child Relationship" chapter in the documentation.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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