| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 재고 시스템
- CaffeineCache
- backend
- 공변
- JDK14
- method area
- 리팩터링
- 지연로딩
- ci/cd
- Jenkins
- 카카오 화재
- java
- nonclustered index
- GithubActions
- B+TREE
- lazyloading
- 웹캐시
- JAVA8
- 동시성
- 제네릭
- 트랜잭션
- 주문
- Ehcache
- Metaspace
- springboot
- 상태패턴
- Spring Data Redis
- 부하테스트
- JPA
- Redis
- Today
- Total
목록JPA (3)
NDM
목차 Delete DeleteById 둘의 차이점 https://ndm-tech.tistory.com/7 [JPA] Hibernate 6 : Save() 메소드 Deprecated 아직은 5버전이지만, Hibernate 6버전부터 Save()메소드가 Deprecated된다. https://docs.jboss.org/hibernate/orm/6.0/javadocs/org/hibernate/Session.html#save(java.lang.Object) Session (Hibernate JavaDocs.. ndm-tech.tistory.com Hibernate에서 6.0버전부터 Save()메소드를 Deprecated처리하고, persist() 사용을 권장한다고 발표했다. 이를 통해 영속성 컨텍스트의 내부 동..
아직은 5버전이지만, Hibernate 6버전부터 Save()메소드가 Deprecated된다. https://docs.jboss.org/hibernate/orm/6.0/javadocs/org/hibernate/Session.html#save(java.lang.Object) Session (Hibernate JavaDocs) Make a transient instance persistent and mark it for later insertion in the database. This operation cascades to associated instances if the association is mapped with CascadeType.PERSIST. For entities with a generat..
목차 update와 DirtyChecking Save의 동작방식 - persist와 merge 예제로 알아보자 merge 후에는 Persistence Context가 관리할까? Optional타입으로 find했다면, Persistence Context에는 Optional객체가 관리될까? Optional.get()가 관리될까? * Persistence Context를 PC로 지칭하겠다. # Update와 Dirty Checking JPA는 update를 명시적으로 호출하지 않는다. 보통 DIrty Checking이라는 방식을 사용한다. 변경 감지란 다음과 같이 작동하는 것을 말한다. PC에 관리되는 객체에 한해, PC는 초기에 해당 객체의 SnapShot을 만들어 둔다. PC에서 관리되고 있는 객체가 Sn..