Closed handelcamilo closed 12 years ago
Hi,
i cannot reproduce this error. The sample project generated in http://jkuehn.github.com/gorm-mongodb/guide/2.%20Quickstart.html uses the constructor with params, which works fine with and without hibernate. try a "grails clean" after removing the hibernate plugin.
If it still does not work, please provide a sample project to reproduce this errror
Hi, I'm getting this exception when try to create a simple object with
Document d = new Document(params)
" URI /MongoDbCloudDoc/document/create Class org.springframework.beans.PropertyBatchUpdateException Message Failed properties: Property 'transactionManager' threw exception; nested exception is java.lang.IllegalStateException: Cannot locate GORM API implementation. You either don't have a GORM implementation installed (such as the Hibernate plugin) or you are running Grails code outside the context of a Grails application. "
I'm configuring my Datasource.groovy like this:
mongodb { host = 'localhost' port = 27017 databaseName = 'clouddb' }
and my domain class have the annotation
@com.google.code.morphia.annotations.Entity
I'm using Grails 2.0.0.M2 and MongoDB 2.0
Thank you!
ps: How can I highlight codes?