We're updating the issue view to help you get more done. 

Criteria on Enum mapping defined in hbm.xml fails.

Description

Using Hibernate 4.1.4 mapping String Enum's via hbm.xml annotation files worked.

Updating to 4.2 final and 4.3.0.Beta1 makes it no longer work.

Using any filtering on an Enum like 'Restrictions.eq("type", EnumTest.VALUE)'

and a mapping of:

<property name="type" column="type" not-null="true">
<type name="org.hibernate.type.EnumType">
<param name="enumClass">default.EnumTest</param>
<param name="type">12</param>
</type>
</property>

Environment

Glassfish 3.12

Status

Assignee

Brett Meyer

Reporter

Marco Janc

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.3.0.Beta1
4.2.0.Final

Priority

Major