Joined: Tue Oct 31, 2006 8:43 am Posts: 1 Location: Germany
|
Hello,
I would like to associate one class in a one to one or one to many association in differnt roles. Addionally these associations should be navigatable
in both directions!!
Here a concrete example:
class Person{
Address homeAddress
Address workAddress
}
class Address{
Person person
...
}
Person can reference a home and a work address. Form the Address class I want to come back to the Person.
We use Hibernate 3.2.0 and Hibernate Annotations.
Can anyone tell me if and how this can be done :-)
Thanks a lot!
Rudolf
|
|