JPA, Composite Key, IdClass
복합키를 IdClass로 구성하여 입력 및 가져오는 code를 정리 N + 1 문제는 fetchjoin과 distinct로 해결하고자 했으며, 추후에 QueryDSL로도 정리 예정 Entity @Entity @Table(name = "member") @Getter @Setter @EqualsAndHashCode(onlyExplicitlyIncluded = true) public class Member { @EqualsAndHashCode.Include @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "member_id") private Long id; private String name; @OneToMany(mappedBy =..
Java/JPA
2021. 12. 3. 10:25
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- command
- Private
- apache
- Linux
- FetchType
- ManyToOne
- Java
- 상수
- 파이썬
- 폼
- highlightthickness
- activeforeground
- borderwidth
- activebackground
- fetch join
- Module
- checkbutton
- vba
- tkinter
- JPA
- 리눅스
- highlightbackground
- Excel
- IdClass
- Composite Key
- tkinter command & bind [명령어묶기와 사건묶기] Python
- Python
- indicatoron
- onetomany
- disabledforeground
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함