2 Replies Latest reply on Mar 11, 2013 4:19 AM by Mateusz Wieczorek

    ORM enum mapping problem in JBoss EAP 6.0.1 (Hibernate 4.1.6.Final)

    Mateusz Wieczorek Newbie

      Hello,

      this is my first post, so on the begining i would like to welcome everybody.

       

      Recently I update JBoss EAP from verion 6.0 to 6.0.1, which implicate upgrade Hibernate module from 4.1.3.Final to 4.1.6.Final. Since then one of applications stop working correctly. Investigeting problem I discover that this application doesn't work correctly with this version of Hibernate (with higher version work fine).

      Shortly, Hibernate doesn't map correctly enum values in embeded objects when mapping to string is setup in orm.xml file. On persist enum are inserted to database as origin values, but on find hibernate is trying to read them as named values which result with java.lang.IllegalArgumentException: Unknown name value for enum class.

       

      Basicly, I want ask when if any will be some patch or upgrade for JBoss EAP 6.0.1 which increase version of Hibernate module?

       

      I attach zip file with maven test project which illustrate problem, if someone interested.