Query on an enum collection fails

Description

When using the isMember operator on a collection of enums the enum parameter is not converted correct. In my attached test case I use hsql, which is throwing an exception:
Caused by: java.sql.SQLSyntaxErrorException: incompatible data type in conversion

Using an oracle-db I just get an empty result, because of the mismatch of the types of the parameter and the field.

Environment

None

Activity

Show:
Oliver Breidenbach
March 9, 2015, 9:34 AM

It seems as this bug was already described by other tickets: HHH-3017, HHH-3914, and HHH-9176.
Unfortunately until now the bug still exist. I will try do deliver a bug fix the next days.

Oliver Breidenbach
March 16, 2015, 7:47 AM

Hi, I created a pull request with 2 tests and a fix:
https://github.com/hibernate/hibernate-orm/pull/909

Gail Badner
April 15, 2015, 9:48 PM

Closing in preparation of releasing 4.3.9.Final and 4.2.19.Final.

Assignee

Steve Ebersole

Reporter

Oliver Breidenbach

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure