Original Reporter: nugsie
Environment: Linux, Ubuntu 10.10, Java 6 (openjdk), Grails 1.7.3
Version: 1.0.0-M5
Migrated From: http://jira.grails.org/browse/GPMONGODB-25
See attached testcase.
Domain objects with enum properties are persisted to the database WITHOUT the enumerated property. The actual save operation completes but looking in the database, there is no field created for the enum property and a basic equality check of the persisted object against the one returned from the save operation fails though the id property matches (see testcase).
Additionally, finders for enum properties do not work - throwing a "can't serializa class" error - presumably a connected issue to do with the (lack of) mapping of the enumerated property?