I'm kinda stuck defining a Hibernate Entity:
Assuming I have the following two tables in a database:
(A)
- fromCompany
- toCompany
- viaCompany
(B)
- companyID (PK)
- description
where the elements of (A) point to the primary key of (B); so there are 3 one-to-one relationships between the FKs and the PK. I assume 3 OneToOne statements with different mappedBy conditions are not the way to go, mh? Has been a long day - I probably just don't get it ;)
Thanks for your help!