Skip to content

Conversation

@cigaly
Copy link
Contributor

@cigaly cigaly commented Nov 6, 2024

See Jira issue HHH-18787

When registering custom type, use type.returnedClass().getTypeName() instead of type.returnedClass().getName(). This is key that is later used. Possible alternative may be to register under both if different.


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.


*/
default void contributeType(UserType<?> type) {
contributeType( type, type.returnedClass().getName() );
contributeType( type, type.returnedClass().getTypeName() );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
TypeContributions.contributeType
should be avoided because it has been deprecated.
@gavinking
Copy link
Member

gavinking commented Dec 4, 2024

Who should be reviewing this one?

@beikov beikov merged commit 045b722 into hibernate:main Dec 6, 2024
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