@PersistenceProperty is being ignored.

Description

Greetings!
I am trying to make use of the above mentioned (@PersistenceProperty) annotation however all my attempts had failed. I tried to pinpoint the issues, but I couldn't,

Maybe I am missing something about this annotation, but I am testing it in a brand new project on a separate PC. The test case is the following:

I had tried with "hibernate.flushMode", "spring.jpa.properties.hibernate.flushMode" etc.

I had tried with "hibernate.show_sql" ,"hibernate.generate_statistics","hibernate.jdbc.batch_size" with "hibernate.order_inserts" and the variations with "spring.jpa.properties" or "org" as prefix.

These are my application.properties

I tried with flushMode = COMMIT, it is still set as AUTO.

Honestly what I am trying to achieve is set "hibernate.jdbc.batch_size" and "hibernate.order_inserts" for this particular @Repository. I have already made it work using

But I cant make it work with @PersistenceProperty annotation. At least to my understanding this is stated in the documentation.

Environment

  • MySQL - mysql-5.7.20-winx64

  • Hibernate 5.4.1.Final

  • Spring Boot 1.5.8.RELEASE

  • spring-boot-starter-data-jpa (same as boot version)

  • JAVA 8

Assignee

Unassigned

Reporter

Александър Осенов

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure