I'm facing an issue while working with JPA entities in my Spring Boot application. I have an entity class named DriverMaster with the @Entity and @Table(name = "driverMaster") annotations to specify the desired table name. However, when the table is created in the database, it's being named as driver_master instead of driverMaster.
Here's my DriverMaster entity class:
@Entity
@Table(name = "driverMaster")
@Data
public class DriverMaster {
// Attributes and getters/setters
}
I have used these properties
#spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.EJB3NamingStrategy
#spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.DefaultNamingStrategy
but nothing works!!!