# Hibernate properties in the Spring application.properties

**URL:** <https://discourse.hibernate.org/t/hibernate-properties-in-the-spring-application-properties/804>\
**Category:** Hibernate ORM\
**Created:** [May 21, 2018, 5:58am UTC](https://discourse.hibernate.org/t/hibernate-properties-in-the-spring-application-properties/804 "2018-05-21T05:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karengsh](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@karengsh](https://discourse.hibernate.org/u/karengsh)\
**Post date:** [May 21, 2018, 5:58am UTC](https://discourse.hibernate.org/t/hibernate-properties-in-the-spring-application-properties/804/1 "2018-05-21T05:58:23Z")

</div>

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 🙂  
#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.

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [May 21, 2018, 6:27am UTC](https://discourse.hibernate.org/t/hibernate-properties-in-the-spring-application-properties/804/2 "2018-05-21T06:27:00Z")

</div>

> [@karengsh](#):
>
> whereas other people are using it without the spring and just put jdbc.driverClassName = …

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.
