Skip to content

Conversation

@chenhh021
Copy link

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Dec 11, 2022

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: [40387bf]

› This message was automatically generated.

Copy link
Member

@gavinking gavinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this is a bug, but it's a much deeper bug that what is contemplated by the proposed fix: essentially, isDirty() has all sorts of side effects on the state of the session. This makes me think that we should perhaps even just deprecate this method of Session.

The proposed fix is definitely not OK, because it can in principle result in database access from ManyToOneType.isDirty().

@jrenaat
Copy link
Member

jrenaat commented Jan 14, 2025

Closing this as per @gavinking's last comment. More discussion needed.

@jrenaat jrenaat closed this Jan 14, 2025
@gavinking
Copy link
Member

It's not that more discussion is needed, it's that I already fixed it in #9476 by completely reimplementing isDirty() from scratch.

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