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: Ternary table as entity class
PostPosted: Wed Apr 25, 2007 3:56 pm 
Newbie

Joined: Sun Apr 22, 2007 5:49 pm
Posts: 5
Schema
Ternary Join Table Name: user_has_role_on_application
Table One :User
Table_Two :Role
Table_Three :Application


If I need to create the Ternary Join Table (user_has_role_on_application) as an entity class what do I need to do. Can I get a reference to the documentation of sample code which does this.

TIA,
Nas

[/list]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 4:18 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Well, I guess you should use: http://www.hibernate.org/hib_docs/v3/re ... -onetomany
and simply put an third one-to-many mapping to the central entity.

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.