이 콘텐츠는 선택한 언어로 제공되지 않습니다.
7.5. Bidirectional Associations with Join Tables
7.5.1. Bidirectional One-to-many and Many-to-one with Join Tables 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The following is an example of a bidirectional one-to-many association on a join table. The
inverse="true" can go on either end of the association, on the collection, or on the join.
create table Person ( personId bigint not null primary key ) create table PersonAddress ( personId bigint 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 bigint not null, addressId bigint not null primary key )
create table Address ( addressId bigint not null primary key )