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

Factor out finding discriminator values for a class #11213

Draft
wants to merge 1 commit into
base: 3.1.x
Choose a base branch
from

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Feb 3, 2024

While reviewing #11200, I noticed that almost the same bug that was fixed in the SqlWalker had been fixed in #10643 for the SingleTablePersister.

The underlying question is what the possible discriminator column values may be for a given class.

This PR is a refactoring that moves this logic to an internal method in ClassMetadata, and uses it from both other places.

(This is a draft for the time being. Waiting for #11200 to be merged and merged up, then this PR will keep only the actual refactoring for 3.1.x.)

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.

None yet

1 participant