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
- spring aop
- netty
- TestContainers
- 우아한 테크러닝
- spring DI
- 알고리즘
- java
- aop
- ObjectOptimisticLockingFailureException
- 형상관리
- 백준
- RefreshToken
- 멀티모듈 테스트컨테이너
- jpa
- Spring Cloud Gateway
- Invalid property 'principal.username' of bean class
- ObjectOptimisticLockingFailureException 처리
- 소수찾기 java
- redissonlock aop
- S3
- @transactional
- kotest testcontainers
- OptimisticLock
- interface
- 낙관적 락 롤백
- multimodule testcontainers
- AccessToken
- springsecurity
- DI
- 낙관적 락 재시도
Archives
- Today
- Total
목록spring data jpa insert select (1)
조급하면 모래성이 될뿐
Spring Data Jpa Insert 할 때 Select가 나가네..
문제 상황 설계한 Entity의 id가 Auto Increament값이 아니다. 생성자가 호출되는 시점에 fk의 조합으로 생성된다. makeReservedSeatId 함수에서 만들어진다. @Entity @Table(name = "reserved_seat") public class ReservedSeat { public static final String ID_SEPARATOR = "_"; @Id @Column(name = "id") private String id; ... private void makeReservedSeatId(Long scheduleId, Long seatId) { this.id = new StringBuilder() .append(scheduleId) .append(ID_SEPARA..
TroubleShooting/데브코스
2022. 7. 1. 02:03