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: double relation
PostPosted: Sat Oct 28, 2006 5:48 am 
Newbie

Joined: Sat Oct 28, 2006 5:42 am
Posts: 1
i have two entities:
football team Team, it has set of matches
football match Match, it has two properties homeTeam, awayTeam, both related many-to-one to Team entity
after calling
session.get(Team.class, id)
in created Team object i want to have set of match in which this team play home or away
how can i do it most correct way?
thx


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.