이 콘텐츠는 선택한 언어로 제공되지 않습니다.
8.3. Unidirectional associations with join tables
8.3.1. One-to-many 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
A unidirectional one-to-many association on a join table is the preferred option. Specifying
unique="true"
, changes the multiplicity from many-to-many to one-to-many.
create table Person ( personId bigint not null primary key ) create table PersonAddress ( personId not null, addressId bigint not null primary key ) create table Address ( addressId bigint not null primary key )
create table Person ( personId bigint not null primary key )
create table PersonAddress ( personId not null, addressId bigint not null primary key )
create table Address ( addressId bigint not null primary key )