mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2026-06-13 01:49:10 +00:00
participant_id 중복 생성 문제 수정
- ParticipantRepository에 날짜별 최대 순번 조회 메서드 추가 - ParticipationService의 순번 생성 로직을 날짜 기반으로 수정 - 이벤트별 database ID 대신 날짜별 전체 최대 순번 사용 - participant_id unique 제약조건 위반으로 인한 PART_001 에러 해결 - 다른 이벤트 간 participant_id 충돌 방지 🎯 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -171,7 +171,11 @@ public class GlobalExceptionHandler {
|
||||
*/
|
||||
@ExceptionHandler(DataIntegrityViolationException.class)
|
||||
public ResponseEntity<ErrorResponse> handleDataIntegrityViolationException(DataIntegrityViolationException ex) {
|
||||
log.warn("Data integrity violation: {}", ex.getMessage());
|
||||
log.error("=== DataIntegrityViolationException 발생 ===");
|
||||
log.error("Exception type: {}", ex.getClass().getSimpleName());
|
||||
log.error("Exception message: {}", ex.getMessage());
|
||||
log.error("Root cause: {}", ex.getRootCause() != null ? ex.getRootCause().getMessage() : "null");
|
||||
log.error("Stack trace: ", ex);
|
||||
|
||||
String message = "데이터 중복 또는 무결성 제약 위반이 발생했습니다";
|
||||
String details = ex.getMessage();
|
||||
|
||||
Reference in New Issue
Block a user