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

deprecate config property org.hibernate.flushMode on AvailableSettings #5954

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

gavinking
Copy link
Member

It's actually a JPA hint, and rightfully belongs on HibernateHints.

cc @Sanne

it's actually a JPA hint, and rightfully belongs on HibernateHints
@hibernate-github-bot
Copy link

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [4055ec8]

› This message was automatically generated.

@Sanne
Copy link
Member

Sanne commented Jan 13, 2023

Personally I completely agree... it's a dangerous property, even though I can see the appeal in certain scenarious, e.g. fully read-only systems - although it would be perfectly viable to set per-session on whatever general utility people will use as Session factory so I don't think I'd miss the property, even in the far fetched scenarios.

However there seem to be people asking for it even in Quarkus, just happened recently again:

We might want to proceed with this anyway, but perhaps let's give them a chance to explain themselves first?
Or at least wait for some other team member's opinions - at least @sebersole ?

cc/ @yrodiere

@gavinking
Copy link
Member Author

I mean, all that is fine, I don't care if we have a config property for this. But that config property has to be called something like:

hibernate.default_flush_mode

or even

hibernate.session.default_flush_mode

or whatever.

It can't be called org.hibernate.flushMode because that's not the name of a config property :-)

@gavinking gavinking merged commit 1b09d20 into hibernate:main Jan 20, 2023
@gavinking gavinking deleted the flushmode-deprecation branch June 15, 2023 11:00
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.

2 participants