The <many-to-many> tag's class attribute specifies the target class for the many-to-many association.
<many-to-many>标签中的class属性用来指明多对多关系中的目标类。
The <many-to-many> tag's column attribute specifies the foreign key column in the link table that relates the link table to the mapping table for the target class.
<many-to-many>标签中的column属性用来指定连接表与目标类的映射表链接的外键。
Finally, the many-key attribute indicates to store this Book instance's ISBN in your many-to-many table, as well.
最后,many-key 属性表明要存储这个 Book 实例的 ISBN 到多对多表中。
应用推荐