Back-end/스프링부트

hibernate 오류 : ids for this class must be manually assigned before calling save()

madison 2020. 10. 15. 15:24

pk인 컬럼을 @GeneratedValue 로 자동 생성 해주거나 혹은 . 직접 식별자를 할당해야 한다.

둘중 한가지로 pk값을 생성하지않았다면 ids for this class must be manually assigned before calling save()  라는 에러가 발생한다.