1. Create hibernate collection on two columns stackoverflow.comI'm trying to create an address book application with one table for People, another for Companies and a third one for Phones. The Phones table will have the data for ... |
2. one-to-many with two columns for the collection-key forum.hibernate.org |
3. two key columns for a collection forum.hibernate.orgHi, the following scenario: a simple class Person with no special properties and a class PersonRelation with properties PersonA and PersonB and RelationType. An example would be Person john = new Person("john"); Person george = new Person("george"); PersonRelation relation = new PersonRelation(john, george, "friends"); this maps in to DB just fine. But now I want to add a Set to the ... |