OneToOne « Column « JPA Q&A





1. OneToOne, but based on a second column, is it possible?    forum.hibernate.org

Hibernate version: 3.2.2 Hopefully a simple example to show what I mean: A HousePurchaseTransaction has a buyer and a seller (both instances of TransactionOwner), if we wanted to capture that relationship it would be normal to link buyer and seller PK in HousePurchaseTransaction, but this is not done, instead the TransactionOwner class has a relation to the HousePurchaseTransaction, and another column ...