반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Docker Compose
- netflix oss
- RabbitMQ
- grafana
- Netty
- spring boot redis
- Spring Open Feign
- docker compose mysql
- WebLogic
- Hibernate
- MySQL
- QueryDSL
- Selenium
- weblogic 10
- vue.js
- docker-compose
- redis
- ChannelPipeline
- spring cloud
- coalesce
- docker
- JPA
- mybatis
- Redis Sentinel
- KAFKA
- argo cd
- jmeter
- cassandra
- spring boot
- Airflow
Archives
- Today
- Total
목록@MappedSuperclass (1)
IT.FARMER
JPA Entity 상속 관계 만들기 ,@MappedSuperclass
@MappedSuperclass 이용한 상속 JPA Entity 에서 상속관계를 만들기 위해서는 @MappedSuperclass 를 사용하여 상속 관계를 정의 할 수 있다. 최상위 Class로 Employee 를 생성하고, 해당 Class를 상속 받아 관계를 정의할 수 있다. 예제 ) @MappedSuperclass public class Employee { @Id protected Integer empId; @Version protected Integer version; @ManyToOne @JoinColumn(name="ADDR") protected Address address; public Integer getEmpId() { ... } public void setEmpId(Integer id) {..
Spring/Spring Data JPA
2021. 5. 25. 11:06