I have two JPA entities like this:
@Entity class Foo { @Id private long id; // ... } @Entity class Bar { @ElementCollection(targetClass = St
You don't need @ManyToMany annotation here. Operations on ElementCollections are always cascaded.
@ManyToMany
ElementCollection