• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

@MappedSuperclass

[JPA] 상속관계 매핑

그 대신 데이터베이스의 슈퍼타입, 서브타입 관계라는 모델링 기법을 통해 객체의 상속관계를 매핑할 수 있다. 통합 테이블로 변환 -> 단일 테이블 전략 서브타입 테이블로 변환 -> 구현 클래스마다 테이블 전략 SINGLE_TABLE: 단일 테이블 전략 테이블이 구분되어 있기 때문에 데이터를 조회할 때 조인이 필요해서 조인 전략이라고 부른다. 조인 전략과 단일 테이블 전략에서 구분자 컬럼은 필수...

@MappedSuperclass@DiscriminatorColumn@DiscriminatorValue상속관계 매핑@DiscriminatorColumn

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more