Programing/JPA
[스택 트레이스] DataIntegrityViolationException Error
초기 데이터를 구성하고 신규로 데이터 저장할 때 데이터 무결성 오류가 발생하였습니다. org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint ["PRIMARY KEY ON PUBLIC.""DEPT””(deptId) ( /* key:1 */ CAST(1 AS BIGINT), NULL, NULL)"; SQL statement: insert into dept (deptId, deptName, remark) values (default, ?, ?) [23505-214]]; nested exception is org.hibernate.exception.ConstraintViol..
2022. 9. 15. 09:47
최근댓글