Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Hibernate customizations #3707

Closed
wants to merge 1 commit into from

Conversation

snicoll
Copy link
Member

@snicoll snicoll commented Aug 7, 2015

While the EntityManagerFactoryBuilder holds the JpaProperties object, it
does not apply the Hibernate-specific customizations. Currently, the
auto-configuration pass an extra properties map that is created by
default based on these customizations.

Unfortunately, we cannot change that as the JTA auto-configuration is
relying on the content of the vendor properties.

To mitigate the problem, EntityManagerFactoryBuilder applies the
Hibernate customizations if no specific properties have been set.

Closes gh-3654

While the EntityManagerFactoryBuilder holds the JpaProperties object, it
does not apply the Hibernate-specific customizations. Currently, the
auto-configuration pass an extra `properties` map that is created by
default based on these customizations.

Unfortunately, we cannot change that as the JTA auto-configuration is
relying on the content of the vendor properties.

To mitigate the problem, EntityManagerFactoryBuilder applies the
Hibernate customizations if no specific properties have been set.

Closes spring-projectsgh-3654
@snicoll
Copy link
Member Author

snicoll commented Aug 7, 2015

@philwebb @dsyer the current code is a bit convoluted (for good reasons). I think it's super confusing that you pass the JpaProperties instance to the factory and that it ignores the hibernate customizations unless you pass those values again via properties on the builder.

I tried to enable that by default (and have an empty vendorProperties by default) but that broke a JTA test.

@snicoll snicoll added the for: team-attention An issue we'd like other members of the team to review label Oct 13, 2015
@philwebb philwebb removed the for: team-attention An issue we'd like other members of the team to review label Oct 21, 2015
@snicoll
Copy link
Member Author

snicoll commented Dec 29, 2016

That one is quite outdated now.

@snicoll snicoll closed this Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants