Hibernate @Type or @TypeDef annotation is ignored with JBoss EAP 6.4.6
Issue
- We’re trying to use JBoss EAP 6.4.6 with
Hibernate (hibernate-core-4.2.22.Final-redhat-1.jar). But Hibernate ignores@Type or @TypeDef, is there a known issue? Before we usedhibernate-core-4-2-7.SP1.jarand the same code works fine, but now we got an Exception (please see the attached log-file).
Test.java
@TypeDef(name = "test_converter", typeClass = TestConverter.class)
...
public class Test implements Serializable {
…
@Column(name= "column1")
@Type(type = "test_converter")
public boolean isTest() {
return test;
}
...
- Is it also possible to use JPA 2.1 and use the
javax.persistence.Convert Class?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.4.6
- JPBM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
