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 |
Tags
- 아두이노
- persistance context
- 운영체제
- 배달로봇
- Spring Batch
- 자바
- Java
- 논문
- 알고리즘
- 자료구조
- 자바ORM표준JPA프로그래밍
- 자율주행
- 네트워크
- Jetson
- Python
- 디자인패턴
- JPA
- Hibernate
- 포인트클라우드
- 장애물인식
- cartograhper
- 논문리뷰
- 프로그래머스
- 영속성컨텍스트
- MySQL
- 이펙티브자바
- DeepLearning
- 파이썬
- Database
- 딥러닝
Archives
- Today
- Total
목록getOne (1)
제리 devlog
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/plB32/btq53ZbqWPU/lbMQ7beumZ5r2fywLCDRuk/img.png)
JPA를 사용하면서 연관 관계를 갖는 엔티티를 만들어 주기위해 연관된 엔티티를 조회해오는 경우가 있다. 아래 게시글에 댓글을 의미하는 Comment엔티티가 있다. @Getter @NoArgsConstructor @Entity public class Comment { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToOne(fetch = FetchType.LAZY) private Post post; @Lob private String content; @Builder public Comment(Post post, String content) { this.post = post; this.content = content..
JPA
2021. 5. 30. 20:56