You can also establish a foreign key in a secondary table to link with a primary key in a primary table.
您还可以在次表中建立外键,以链接主表中的主键。
Create a foreign key to link this new table with the existing employee table.
创建一个外键,以便将这个新表与已有的雇员表相连接。
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属性用来指定连接表与目标类的映射表链接的外键。
应用推荐