could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement

daon·2023년 1월 19일
0

soft delete 적용하기

https://velog.io/@max9106/JPA-soft-delete


user delete를 하는 기능에 soft delete를 적용하고 나서 발생한 에러이다.



postman에서 출력한 에러

could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement

인텔리제이 콘솔 에러

테이블 이름이 user_entity이므로 UserEntity에서 user_entity로 변경해주었다.
다시 실행

UserEntity에서는 컬럼이름이 id이지만 DB에는 user_id이기 때문에 이것도 변경해주었다.
다시 실행

작동 성공

profile
중요한 건 꺾이지 않는 마음 :)

0개의 댓글

관련 채용 정보