ClassCastException using Restrictions.in with Child classes in Criteria based on Parent class

Description

Executing the following Critereria results in a ClassCastException since Class cannot be cast to String.

From posting a question on Stack Overflow it was suggested that this is a bug in Hibernate.

Activity

Show:

Vlad Mihalcea March 8, 2016 at 1:55 PM

Applied the PR on master and 5.0

Vlad Mihalcea March 8, 2016 at 1:55 PM

Applied the PR on master and 5.0.

Vlad Mihalcea March 8, 2016 at 1:20 PM

I reopened it because we have a PR that fixes it.

Former user February 27, 2016 at 4:10 AM

org.hibernate.Criteria API is considered deprecated. We are no longer doing development in this area. Please see:
https://docs.jboss.org/hibernate/orm/5.0/userGuide/en-US/html/apb.html

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 11, 2016 at 11:59 AM
Updated March 15, 2016 at 2:10 AM
Resolved March 8, 2016 at 1:55 PM