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?
Try simpledb GORM plugin for grails: http://grails.org/plugin/simpledb
after many trials and errors i am managed to use simple jpa project from grails web application
I have used it :
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With