๐ปJPA/Hibernate
Common Linking Use Cases
Many to Many
ACCOUNT 1..* to POSITION 1..* via a mapping Table ACCOUNT_POSITION
One to One
POSITION
to POSITION_EXTENSION
without mapping table. POSITION_EXTENSION
holds the ID referring to POSITION. POSITION_EXTENSION
entries are only created if necessary.
Troubleshooting
Check if one or more persistence.xml exist that need to contain the new entities
Do the entities have an empty default constructor for JPA? e.g.
Position(){}
Last updated