collection « Column « JPA Q&A





1. Create hibernate collection on two columns    stackoverflow.com

I'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 ...

3. two key columns for a collection    forum.hibernate.org

Hi, 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 ...