Grails and Amazon SimpleDB
Asked Answered
P

4

7

How to setup Grails project to use Amazon SimpleDB?

One possibility is to install gorm-jpa plugin and use SimpleJPA library, but I couldn't setup it correctly.

Has someone experience with this combination?

Playground answered 25/7, 2010 at 21:17 Comment(2)
Out of curiosity, what is the compelling use case for SimpleDB?Lichee
Just read aws.amazon.com/simpledb/#highlights: low touch, scalable, highly available, flexible, fast, inexpensive, ...Playground
N
2

after many trials and errors i am managed to use simple jpa project from grails web application

I have used it :

using EntityManagerFactory and the JPA provider APIs

writing few service artifacts was able to use to simple bd features seamlessly

Nonexistence answered 5/12, 2010 at 16:43 Comment(0)
T
5

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

Titanium answered 24/8, 2011 at 21:31 Comment(0)
N
2

after many trials and errors i am managed to use simple jpa project from grails web application

I have used it :

using EntityManagerFactory and the JPA provider APIs

writing few service artifacts was able to use to simple bd features seamlessly

Nonexistence answered 5/12, 2010 at 16:43 Comment(0)
F
1

It can be done with the gorm-jpa plugin and simplejpa, but there are a lot of conflicts between the limitations in gorm-jpa and simplejpa (in addition to those on that page, simplejpa currently only supports named parameters not positional parameters, which GORM requires). I've found it much better to just use simplejpa and inject the entityManager directly into objects that need it. Also keep in mind that there are some limitations to SimpleJPA's support for groovy: it supports JPA annotations on grails domain class attributes, but you have to annotate a getter for ManyToOne and OneToMany relationships.

Frederiksberg answered 26/5, 2011 at 15:43 Comment(0)
S
1

The current release of the GORM SimpleDB plugin (0.5) is a bit dated and doesn't work with the current release of GORM (2.0.7) used in Grails.

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

Sere answered 28/1, 2014 at 21:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.