PK ID를 String 타입으로 할 때

도규원·2023년 2월 4일
0

spring boot

목록 보기
16/16

String타입에 GenerateValue도 쓰지 않을 때 에러해결방법

Entity class에서

implements Persistable<String>

한 다음
isNew 메소드를 오버라이드하여
새로운 객체인지 판별할 조건을 정해준다.

profile
Engineer

0개의 댓글