| Hi Steve, Thank you very much for looking into this and for the test. I have been trying to understand what is happening here. I refactored my test to be run outside of the J2EE container and the resulting schema is as expected (enums are mapped as integers). The same test, ran in a container (both Wildfly and Glassfish) will generate the wrong schema (enums mapped as tinyblobs). It is a problem related with running in a container. I do not have the knowledge about the J2EE container to understand what could be changing the schema mapping. What is interesting is that if I run the test in the container with hibernate 4.3.11, it works fine. By any chance, do you know what changed after release 5.0 related with the schema generation? Thanks again, Juan |