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