Grails and Amazon SimpleDB

How do I set up my Grails project to use Amazon SimpleDB?

One possibility is to install the gorm-jpa plugin and use the SimpleJPA library, but I could not configure it correctly.

Does anyone come across this combination?

+7
hibernate amazon-simpledb grails
source share
4 answers

after many trial and error, I managed to use a simple jpa project from the grails web application

I used it:

using EntityManagerFactory and JPA APIs

Writing multiple service artifacts was easy to use for simple bd functions

+2
source share

Try the simplified GORM plugin for grails: http://grails.org/plugin/simpledb

+5
source share

This can be done using the gorm-jpa and simplejpa plugin , but there are many conflicts between the limitations in gorm-jpa and simplejpa (in addition to the fact that on this page, simplejpa currently only supports named parameters, not positional parameters, which GORM required). I found it much better to just use simplejpa and inject the entityManager directly into the objects that need it. Also keep in mind that there are some limitations to supporting SimpleJPA for groovy: it supports JPA annotations for grails class attributes, but you have to annotate getter for ManyToOne and OneToMany relationships.

+1
source share

The current version of the GORM SimpleDB plugin (0.5) is a bit outdated and does not work with the current version of GORM (2.0.7) used in Grails.

You can make it work, but it takes a little effort. See http://twasink.net/2014/01/29/how-to-grails-gorm-and-simpledb/

+1
source share

All Articles