As explained in this article, move the @JoinFormula
to the @ManyToOne
side and make the @OneToMany
bidirectional.
A bidirectional association is also much more efficient than a unidirectional one.
As explained in this article, move the @JoinFormula
to the @ManyToOne
side and make the @OneToMany
bidirectional.
A bidirectional association is also much more efficient than a unidirectional one.