[JPA] Hibernate Entity는 대문자인데 소문자로 쿼리 실행할 때
.findAll() 하는데 자꾸 소문자로 실행해서 consol에 쿼리를 DB 툴에서 Table 명을 대문자로 해서 실행했더니 잘된다....
검색해봤더니 hibernate가 소문자로 바꿔서 한다고.... 설정은 간단했다.
application.yml 에 설정만 추가해주면 된다.
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
'SPRING > JPA' 카테고리의 다른 글
| [JPA] Pagaeable 다중 sort 방법 (0) | 2021.10.26 |
|---|---|
| [JPA ERROR] org.spring.framework.orm.jpa.JpaSystemException: Null value was to a property (0) | 2021.03.24 |