I have 2 entities :Customer & Address.
With @OneToOne and @JoinTable Customer.java looks like this:
When I try to persist a customer I get the following stack-trace:
I have tried this change in Address entity:
with no effect. Surely this could be done without using JoinTable.But I want to do it this way for academic interest.Is it possibe?