Hibernate properties in the Spring application.properties

Hi,

I am trying to use Spring Boot to manage the transaction in my JEE web with JPA etc.
However, I studied a few tutorials and found that some people are making the application.properties like this :slight_smile:
#Hibernate Configuration
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.properties.hibernate.show-sql=true
spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext

whereas other people are using it without the spring and just put jdbc.driverClassName = …

I’d like to know which is the one that I should use…best something not very complicated and will not cost me alot of money should I be able to really complete the project for hosting…not sure if I will even get to that part…

Tks.

They probably do that only for the tutorials you found.

In reality, you either use a Java EE application server like Wildfly or JBoss or you use Spring.

If you are using Spring, you just have to supply the database connection properties.