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
- Thymeleaf
- pointcut
- 스프링 핵심 기능
- Android
- java
- JPQL
- Spring Boot
- 백준
- AOP
- springdatajpa
- 스프링 핵심 원리
- 인프런
- 스프링
- transaction
- 자바
- JDBC
- spring
- 알고리즘
- jpa
- kotlin
- QueryDSL
- 김영한
- Servlet
- db
- 그리디
- Exception
- Greedy
- SpringBoot
- http
- Proxy
Archives
- Today
- Total
목록영속성 전이 (1)
개발자되기 프로젝트
영속성 전이(CASCADE),고아 객체
1. 영속성 전이 : CASCADE 특정 엔티티를 영속 상태로 만들 때 연관된 엔티티도 함께 영속 상태로 만들고 싶을 때 사용 부모 엔티티를 저장할 때 자식 엔티티도 함께 저장. CASCADE를 사용하지 않으면 일일히 저장해 줘야한다. Child와 Parent는 양방향 다대일 관계 Child child1 = new Child(); Child child2 = new Child(); Parent parent = new Parent(); parent.addChild(child1); parent.addChild(child2); em.persist(parent); em.persist(child1); em.persist(child2); tx.commit(); 흠 귀찮은데? 요 때 쓰는게 CASCADE Parent ..
인프런/[인프런] 자바ORM 표준 JPA 프로그래밍
2021. 8. 12. 21:35