I can also confirm this bug. Hibernate 5.0.1 was working for me. The problems seems to be that for sub classes the collection roles are not stored also in a list, e.g when the entity "User" has an entity field "roles" - describing the users roles - and a derived classed of "User" exists, e.g. "Student", then a "criteriaBuilder.isMember(<Role instance>, User_.roles);" fails with the exception of this ticket. The fix would require to build a complete map of all plural attributes over all sub classes. |