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
- 버전 문자열 비교
- getEntityGraph
- spring boot
- RootGraph
- 오블완
- yml
- MSSQL
- MYSQL
- 운동해서 광명찾자
- getDateCellValue
- mysql not equal null
- NamedEntityGraph
- fractional seconds
- createEntityGraph
- 1*1000
- mysql equal null
- load order
- mysql8업그레이드
- jdbc characterencoding utf8mb4
- sendFractionalSeconds
- 티스토리챌린지
- 운영체제별 차이
- mysql =
- AuditingEntityListener
- jdbc utf8mb4
- +9:00
- https
- apatch poi
- java jdbc utf8mb4 연결 오류
- Protecle
Archives
- Today
- Total
목록EmbeddedId (1)
Hello

@Embeddable, @EmbeddedId를 사용해 일대일 조인테이블 Entity 만드는 방법을 간단하게 정리합니다. @Entity public class Buff { @Id @GeneratedValue private Integer id; private Integer type; private Integer value; } @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; } @Entity public class BuffUser { @EmbeddedId private BuffUserPk id; @MapsId("userId") @ManyToOne @JoinColumn(name ..
java
2023. 10. 12. 18:06