JPA 실패는 보이는 시점이 서로 다르다
persist method가 정상 반환됐어도 flush·commit에서 constraint가 발생할 수 있다.
| 실패 | 시점 | 의미 |
|---|---|---|
| unique | flush·commit | integrity violation |
| stale version | flush·commit | optimistic conflict |
| lazy access | context 종료 후 | loading boundary |
persist method가 정상 반환됐어도 flush·commit에서 constraint가 발생할 수 있다.
| 실패 | 시점 | 의미 |
|---|---|---|
| unique | flush·commit | integrity violation |
| stale version | flush·commit | optimistic conflict |
| lazy access | context 종료 후 | loading boundary |