Reputation: 636
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
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