-->
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: Basic relation question
PostPosted: Thu Jan 13, 2005 6:30 pm 
Newbie

Joined: Thu Jan 13, 2005 11:41 am
Posts: 3
Hi,

I have big problems with understanding the one-to-many relation.

For example, if a parent has 3 childeren:

Parent 1
|- child 1
|- child 2
|- child 3

I have the following java code.

Collection childeren = parent.getChilderen(); // works fineā€¦.

But how I remove child 3, and change the age of child 1

Also how can I sort them age, then on name (order by age, name)...

Thx in adv.
Pieter


Top
 Profile  
 
 Post subject: Re: Basic relation question
PostPosted: Fri Jan 14, 2005 10:35 am 
Regular
Regular

Joined: Thu Oct 07, 2004 4:45 pm
Posts: 92
These are all basic questions, which are covered in the documentation and the Hibernate in Action book. Please read the documentation.


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.