-
Notifications
You must be signed in to change notification settings - Fork 365
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
isCollectionType returns false for ListArrayType #377
Comments
Hibernate Types doesn't generate the Metamodel. Hibernate does that. So, this issue is a Hibernate problem. Therefore, you need to open thr issue on the Hibernate project and provide a fix there. |
ListArrayType should overwrite |
Send me a Pull Request with this fix plus a replicating test case and I'll check it out. |
For anyone facing this, a Example with above use case, on PostgreSQL: |
ListArrayType
is a grant child ofAbstractStandardBasicType
which setsisCollectionType
tofalse
.The impact is
When using CriteriaBuilder with the field it checks if
attributeMetadata.isPlural()
by readingisCollectionType
.The field should be
ListAttribute
but since it is not a collection type it was builded as aSingularAttribute
.And calling CriteriaBuilder.isMember() throws
unknown collection expression type [org.hibernate.query.criteria.internal.path.SingularAttributePath]
Code example:
A Entity
Queries
The text was updated successfully, but these errors were encountered: