Search This Blog

Wednesday, March 11, 2020

Spring Boot - Hibernate column is created with _ underscore, but ma already existing column should take rather than new column

Spring application.yaml

spring:
jpa:
        hibernate:
            naming:
                implicit-strategy: "org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl"
                physical-strategy: "org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl"


Spring application.properties

spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

No comments:

Hit Counter


View My Stats