Spring Boot Hibernate remove underscore naming strategy

To remove the underscore naming strategy in Spring Boot Hibernate, follow these steps:

  1. Create a new class that implements the PhysicalNamingStrategy interface.

  2. Override the toPhysicalTableName and toPhysicalColumnName methods to customize the naming strategy.

  3. Annotate the new class with @Component to make it a Spring-managed bean.

  4. Configure the naming strategy class in the application.properties file using the spring.jpa.hibernate.naming.physical-strategy property.

  5. Restart the application to apply the custom naming strategy.