ERROR org.hibernate.AssertionFailure - HHH000099: an assertion failure occurred (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): org.hibernate.AssertionFailure: Unexpected BindableType; expected [ENTITY_TYPE]; instead got [PLURAL_ATTRIBUTE]
org.hibernate.AssertionFailure: Unexpected BindableType; expected [ENTITY_TYPE]; instead got [PLURAL_ATTRIBUTE]
at org.hibernate.query.criteria.internal.path.PluralAttributePath.resolveRole(PluralAttributePath.java:66)
at org.hibernate.query.criteria.internal.path.PluralAttributePath.resolvePersister(PluralAttributePath.java:46)
at org.hibernate.query.criteria.internal.path.PluralAttributePath.<init>(PluralAttributePath.java:41)
at org.hibernate.query.criteria.internal.path.AbstractPathImpl.get(AbstractPathImpl.java:149)
at org.hibernate.query.criteria.internal.path.AbstractPathImpl.get(AbstractPathImpl.java:185)