We're updating the issue view to help you get more done. 

@ManyToAny is to emulate @ManyToMany rather than @OneToMany

Description

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.

Environment

None

Status

Assignee

林自均

Reporter

林自均

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor