Java Reference
In-Depth Information
Listing 9.20. Bidirectional many-to-many relationship
In this listing, the Category object's items property is marked by the @ManyToMany
annotation and is the owning side of the bidirectional association. In contrast, the Item
object's categories variable signifies the subordinate bidirectional many-to-many as-
sociation. As in the case of one-to-many relationships, the @ManyToMany annotation is
 
Search WWH ::




Custom Search