반응형
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 |
Tags
- Docker Compose
- vue.js
- weblogic 10
- spring boot redis
- jmeter
- WebLogic
- argo cd
- Redis Sentinel
- KAFKA
- grafana
- Hibernate
- coalesce
- QueryDSL
- Airflow
- netflix oss
- spring boot
- Netty
- redis
- docker-compose
- ChannelPipeline
- JPA
- Spring Open Feign
- docker
- RabbitMQ
- docker compose mysql
- cassandra
- mybatis
- spring cloud
- Selenium
- MySQL
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