Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- SessionManagementFilter
- 임베디드 타입
- AnonymousAuthenticationFilter
- 기본값 타입
- Database
- 동시 세션 제어
- 세션 생성 정책
- 즉시 로딩
- 지연 로딩
- spring jpa
- 다대다
- 객제지향 쿼리 언어
- concurrentsessionfilter
- TABLE
- Spring Security
- 값 타입 컬렉션
- field column mapping
- 기본 키 매핑
- Remember-me
- jpa
- 세션 고정 보호
- orphanRemovel
- MySQL
- ddl-auto
- 상속관계 매핑
- 값 타입 비교
- form login
- JPQL
- @MappedSuperclasss
- 양방향 매핑
Archives
- Today
- Total
목록@MappedSuperclasss (1)
hoondev
[Spring JPA] @MappedSuperclass
@MappedSuperclass 공통 매핑 정보가 필요할 때 사용한다. 실제 테이블과 매핑되지 않는다. @MappedSuperclass public abstract class BaseEntity { @Id @GeneratedValue private Long id; private String name; ... } @Entity public class Member extends BaseEntity { private String email; } @Entity public class Seller extends BaseEntity { private String shopName; } 이렇게 하면 테이블에 BaseEntity의 id, name을 상속 받게 된다. BaseEntity는 엔티티가 아니고 테이블과 매핑되지..
Spring JPA
2023. 1. 31. 16:56