Skip to content

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Dec 16, 2025

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19993

@quaff
Copy link
Contributor Author

quaff commented Dec 16, 2025

@gavinking Please review.

@quaff quaff changed the title HHH-19993 Introduce AnnotationBasedUserType and allow UserType constructor accept Member as parameter HHH-19993 Introduce AnnotationBasedUserType and allow UserType constructor accept MemberDetails as parameter Dec 16, 2025
@quaff quaff force-pushed the HHH-19993 branch 3 times, most recently from f0fbaa4 to 5024e01 Compare December 16, 2025 10:13
@quaff quaff force-pushed the HHH-19993 branch 2 times, most recently from 9678cbb to 023c027 Compare December 19, 2025 01:06
@quaff quaff changed the title HHH-19993 Introduce AnnotationBasedUserType and allow UserType constructor accept MemberDetails as parameter HHH-19993 Introduce UserTypeCreationContext and AnnotationBasedUserType Dec 22, 2025
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.

The search for constructors is sort of in the wrong order. It should look first for a constructor which takes both annotation and context, and then it should look for a constructor which accepts one or the other.

@quaff
Copy link
Contributor Author

quaff commented Dec 22, 2025

The search for constructors is sort of in the wrong order. It should look first for a constructor which takes both annotation and context, and then it should look for a constructor which accepts one or the other.

Fixed.

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.

Looks good now.

@gavinking gavinking merged commit afbad8c into hibernate:main Dec 22, 2025
22 of 23 checks passed
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