본문 바로가기

hoondev

검색하기
hoondev
프로필사진 hoondev3

  • 분류 전체보기 (38)
    • Spring JPA (28)
    • Spring Security (0)
    • Database (7)
    • Java (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
  • 양방향 매핑
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록@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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바