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

HHH-18787 Custom UserType not recognised for array properties #9205

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.


@@ -56,7 +56,7 @@
* type for values of type {@link UserType#returnedClass()}.
*/
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

Invoking [TypeContributions.contributeType](1) should be avoided because it has been deprecated.
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.

1 participant