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
- disabledforeground
- 리눅스
- FetchType
- Composite Key
- vba
- 파이썬
- onetomany
- Private
- Java
- IdClass
- activebackground
- borderwidth
- 폼
- fetch join
- command
- checkbutton
- Linux
- tkinter command & bind [명령어묶기와 사건묶기] Python
- highlightthickness
- Excel
- Module
- indicatoron
- JPA
- 상수
- activeforeground
- highlightbackground
- Python
- ManyToOne
- apache
- tkinter
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함