-----------OR--–-------------
In One-To-One Unidirectional with Foreign Key association mapping, one table has a foreign key column that references the primary key of associated table. By Unidirectional relationship means only one side navigation is possible (Person to Pan in this example). Let’s get going.
- Eclipse IDE
- Maven 4.0
- MySQL 8.0
- Hibernate
- Java
Examples -
- One person has one pancard, a pancard is associated with a single person.