posted 17 years ago
Persistence specification:
The inverse side of a bidirectional relationship must refer to its owning side by use of the
mappedBy element of the OneToOne, OneToMany, or ManyToMany annotation. The
mappedBy element designates the property or field in the entity that is the owner of the relationship.
So , @mappedby should be placed on the inverse side not the owning side
Thanks,
Waleed Zedan<br />SCJP 1.4