There is a workaround for this kind of use cases, that is to set the mappedBy value in both sides of the association.
What do you mean setting mappedBy in both sides? The other side of a @OneToMany has a targetEntity of type Class--is that what you mean? |