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 | 29 | 30 | 31 |
Tags
- SQL 삽입 공격
- Item04
- 플라이웨이트
- Firebase
- FCM
- Web
- NotBlank
- Connection Pool
- 데이터베이스
- 디자인 패턴
- Spring Boot
- 이펙티브 자바
- Service Locator 패턴
- Effective Java
- multi module
- restTemplate
- deleteById
- db
- JPA
- @ControllerAdvice
- 트랜잭션
- @SpyBean
- NotEmpty
- java
- Effetive Java
- @Valid
- springboot
- Service Locator
- Proxy Patter
- @MockBean
Archives
- Today
- Total
목록Error (1)
NoTimeForDawdling
[Hibernate] - A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance
특정 Entity의 필드 값으로 List를 들고 있었고, 해당 필드를 업데이트하려고 다음과 같은 에러가 발생했다! A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance 매핑 관계는 다음과 같다. @OneToMany(mappedBy = "product", fetch = EAGER, cascade = CascadeType.ALL, orphanRemoval = true) private List fileList = new ArrayList(); 그리고 문제의 업데이트 코드! private void changeFileList(List fileList) { this.fileList = fi..
Error
2021. 4. 17. 15:26