-
Notifications
You must be signed in to change notification settings - Fork 0
18.07.10
chy edited this page Jul 31, 2018
·
1 revision
-
식별: 부모 테이블의 키가 자식 테이블의 기본키와 연관 있는 경우 -
비식별: 부모 테이블의 키가 자식 테이블의 기본키와 연관이 없는 경우
@Inheritance
-
strategy = InheritanceType.JOINED-
@DiscriminatorColum,@DiscriminatorValue를 통해 join을 통해 조회 가능한 테이블들을 생성
-
-
strategy = InheritanceType.SINGLE_TABLE-
@DiscriminatorColum,@DiscriminatorValue을 통해 구분되는 단일 테이블을 생성 - 사용되지 않는 값들은
null할당
-
-
strategy = InheritanceType.TABLE_PER_CLASS- 각각 모든 속성을 가진 테이블을 생성
@MappedSuperclass
- 부모 클래스는 매핑하고 싶지 않을 때 사용