I have two examples that first is @OneToOne unidirectional mapping and second bidirectional. In unidirectional mapping, the owning-side table must contain a join column that
I just had an experiment on this. If you just do this below, both tables will have foreign keys:
@OneToOne private Address43 address; @OneToOne private Customer44 customer;
Now you don't need to do the join. I am not sure if it is a good practice or not. Just make sure if you don't have CASCADES.