Hi Gents: Thanks many for your replies. If you open the example I uploaded, the file BookNS.java under the EJB code, has the @Enumerated annotation. While the file Book.java does not have such annotation. Neither of them work as expected. The reason why you have two cases in the example I provided, is because the Java Persistence API 2.1 (http://jcp.org/aboutJava/communityprocess/final/jsr338/index.html) on page 445 states: "If the enumerated type is not specified or the Enumerated annotation is not used, the enumerated type is assumed to be ORDINAL unless a converter is being applied". My guess is that we want Hibernate to be JPA 2.1 compliant, therefore you need to test both cases. I suggest looking in the files I posted, you have all the examples needed to test Hibernate for this case. Cheers, Juan |