-->
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: How to associate a class to multiple classes
PostPosted: Tue Apr 12, 2005 9:24 pm 
Beginner
Beginner

Joined: Tue Apr 12, 2005 9:15 pm
Posts: 24
Hello,
Need some advice for how I can make this work with hibernate. I have a class Address that needs to be associated as a collection in several different classes e.g: One of my class "Employee" needs a collection of "Address". Another class "Manager" needs a collection of "Address" and there are few other classes that needs Address collection.

What is the best way to associate this single class from many different classes? Also, I want only one way association from those many classes to the "Address" class - meaning, I don't want to reference back from Address class.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 1:47 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Have a look at 5.1.21. any in the h3 manual.

HTH
Ernst


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.