How to fake ENUM columns in the H2 database for play unit testing?
I have a set of Play! unit tests that I have been running against an H2 database. I have added some enum columns to my model, and the tests now fail because of the sql statements used to create my model tables. The error message is: 14:42:10,435 ERROR ~ Unknown data type: "ENUM"; SQL statement: Some searching shows that there are ways to emulate enums in H2 (eg: http://groups.google.com/group/h2-database/search?group=h2-database&q=enum&qt_g=Search+this+group ) Setting Play to use the H2Dialect for test mode does not fix the issue. It seems like the root cause is that H2 does not support enums,