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