Open Mobe91 opened 6 years ago
Currently we cannot use enums in the VALUES clause:
.fromValues(MyEnum.class, "myEnum", MyEnum.values())
A workaround is to use the underlying type the enum is mapped to.
That it simply works
Produces an exception
See code above
Version: 1.2.0 JPA-Provider: Hibernate 5.2 DBMS: - Application Server: -
Another option is to make use of the fromValuesLike function introduced in 1.3.0.
fromValuesLike
Description
Currently we cannot use enums in the VALUES clause:
A workaround is to use the underlying type the enum is mapped to.
Expected behavior
That it simply works
Actual behavior
Produces an exception
Steps to reproduce
See code above
Environment
Version: 1.2.0 JPA-Provider: Hibernate 5.2 DBMS: - Application Server: -