In this there is one to many relation between Employee and Account. Employee is the one side of the relationship. Account is the many side of the relationship.
Here the extra association column needs to be generated on the Account side but the JoinColumn annotation is used in the Employee entity.
Is the joincolumn annotation not supposed to be used on the owning side(side responsible for association column update) which is the Account entity since it is the many side of the relationship and defaulting to the owning side(since it is the many side of the relationship)?
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!