You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition, there is an issue using this starting after Postgres 14 where we encountered a ClassCastException when using these custom types in our entity classes. Here are a few of the resources I found:
The actual exception message included the following:
ArrayUserTypesIntegrationTest.beforeAll:36 » ClassCast class org.hibernate.type.CustomType cannot be
cast to class org.hibernate.type.BasicPluralType (org.hibernate.type.CustomType and
org.hibernate.type.BasicPluralType are in unnamed module of loader 'app')
* Deprecate custom Hibernate array UserTypes
* Deprecate AbstractArrayUserType, BigintArrayUserType, and TextArrayUserType for removal
* Suppress the removal warnings in test code
Closes#1117
* Add missing deprecate tag to javadoc
Hibernate 6 supports arrays natively now, so there is no longer a need for us to have custom array
UserType
classes in kiwi.Deprecate this and its two sub-classes for removal in a future version.
For information on Hibernate 6's support for arrays, see Collections mapped to SQL arrays in An Introduction to Hibernate 6.
Another resource is: https://in.relation.to/2022/06/24/hibernate-orm-61-features/
In addition, there is an issue using this starting after Postgres 14 where we encountered a
ClassCastException
when using these custom types in our entity classes. Here are a few of the resources I found:So, these custom user types stop working when using Hibernate 6 and Postgres 15+. Another reason to remove them.
The text was updated successfully, but these errors were encountered: