Hi I am playing around with hibernate a bit, I'v read through the manual but I cant find out how to do the following :
I have a person who can have friendships with another person, this friendship also has properties , like when it was established
so my object model should probably become like this.
a person object with a name property and a friendships collection
a friendship object with an established date property and a person1 and person2 property
with diseperate objects in the "link object' you could have 2 many-to-one relationships but since both the friend1 and friend2 properies are friends you cant really do that.
Any cluess as how to do this or where to look in the manual
|