shared-primary-key

Hibernate zeroToOne

I am trying to establish a relationship between 2 entities which would be zero-to-one. That is, the Parent can be saved without the associated Child entity and also along with the assoicated Child. Following are the 2 Entity classes... Employee (Parent) public class Employee { @Id @GeneratedValue(strategy = GenerationType.AUT...