Open riverrevir opened 2 years ago
1,2 오류는 엔티티에서 쿼리에 적용되지 않은 필드명을 작성하여서 오류가 났다. 가능하면 JPA로 필드를 만들 때 _연속된 언더바는 피하는게 좋을 것 같다. _를 빼고 카멜케이스 명명법으로 작성해야 한다.
Avoid using underscores in the entity property names if you have control over the property naming. This will resolve your repository woes, and will result in a cleaner code-base. Developers dealing with the code after you will thank you.
@Column을 사용할 때는 _를 사용하여 필드를 만들어도 되지만, 스프링 부트의 엔티티 변수 선언에서는 언더바를 사용하지 말아야 한다.
데이터베이스 엔티티 생성 문제 발생