-->
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: association management method
PostPosted: Wed Sep 06, 2006 10:26 am 
Newbie

Joined: Fri Jun 16, 2006 12:24 pm
Posts: 7
http://www.hibernate.org/116.html#A10

The above FAQ says that I should use the association management method, but it doesn't describe how to use it. Can someone explain what this is or point me to where it is in the documentation?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 10:57 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
It's just saying that you should use a method to manage your association like this (in Parent.java) so you don't have to keep making both calls every time you want to add a child to a parent:

Code:
public void addChild(Child child) {
  this.getChildren().add(child);
  child.setParent(this);
}


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.