I'm using spring-boot-2.0.3
with hibernate
and would like to use database table auto generation.
Problem: by default myisam
tables are created, but I'd prefer innodb
. Adding the following properties work to change the tables always to innodb, but which of those properties should be the preferred way?
spring.jpa.properties.hibernate.dialect.storage_engine=innodb
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
Is there any drawback using one over the other?
Sidenote: this is NOT a duplicate (the linked question is in no way about java/hibernate/spring)!