Roma Kap
Roma Kap

Reputation: 636

Disable Hibernate provider_disables_autocommit in SpringBoot

I would like to set common hibernate property:

<property name="hibernate.connection.provider_disables_autocommit" value="true"/>

in my SpringBoot project, but i find only property in application.properties like this:

spring.datasource.auto-commit=false

i'am not sure, if it the same thing?

Upvotes: 1

Views: 974

Answers (1)

SternK
SternK

Reputation: 13111

Try to use this:

spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true

As mentioned in the documentation:

spring.jpa.properties.* - Additional native properties to set on the JPA provider.

Upvotes: 5

Related Questions