How to use the Hibernate @JoinFormula annotation with a @OneToMany JPA association?

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.