然后他的表呢是三张:
create table Person ( personId bigint not null primary key )
create table PersonAddress ( personId bigint not null, addressId bigint not null, primary key (personId, addressId) )
create table Address ( addressId bigint not null primary key )
key column是指在多的一端(student表)中添加一个名为gradeid的字段,添加的字段的值为当前配置文件中主键的值(即gradeid)。即实现了主外键关联
因为设置了inverse=true,实际上这个字段是在由student进行维护的···
顺便鄙视一下楼上打广告的····