| The user guide says:
While the @Any mapping is useful to emulate a @ManyToOne association when there can be multiple target entities, to emulate a @OneToMany association, the @ManyToAny annotation must be used.
However, @ManyToAny behaves more like @ManyToMany rather than @OneToMany since it allows many entities to map many "Any" entities with @JoinTable. |