Skip to content

GPMONGODB-56: Enum properties are not stored in db #492

@graemerocher

Description

@graemerocher

Original Reporter: persundberg
Environment: Grails 1.3.7, no hibernate installed, only tomcat and mongodb
Version: 1.0.0.M6
Migrated From: http://jira.grails.org/browse/GPMONGODB-56

Hi, the enums are not stored as they should in the database. I have a small test app with a boot strap that fails on asserting the enum when starting up (with run-app) (I couldn't use unit testcase since that uses h2 db). The database excerpt looks like this, and as you can see the enum property is not present:

use mongodbissue
switched to db mongodbissue
show collections
issue
issue.next_id
system.indexes
db.issue.find()
{ "_id" : NumberLong(1), "testprop" : "new testval", "version" : 0 }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions