0

I am trying to do an application with Springboot, that uses Mysql and Angular. If I run the spring application, it is creating a new table in mysql, and inserting values into it. Even though i wrote the table name in Uppercase as "T_EMPLEAVE", springboot is creating a new table in lowercase as "t_empleave" .Moreover, I have created the table with Uppercase in Mysql. But, my application is not using it. How to tell Spring boot to use the existing table instead of creating new table.

Following is my application.properties file.

spring.datasource.username=**
spring.datasource.password=***
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

Model

@Entity
@Table(name="T_EMPLEAVE")
Md.Sukel Ali
  • 2,987
  • 5
  • 22
  • 34

1 Answers1

0

Try adding the following to your properties file or update the line if it already exists :

spring.jpa.hibernate.ddl-auto=update
Abdelkarim EL AMEL
  • 1,515
  • 1
  • 10
  • 10