Simple ORM for Groovy and Ratpack

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Simple ORM for Groovy and Ratpack

dbirtwell
Hey All:

I didn't feel like rolling my own Groovy (non-Rails) ORM for my Ratpack CRUD-based prototypes, so I Googled a bit and found a very simple Groovy-based ORM project.

I actually tried it out and found it very easy to use. I created a simple Groovy Singleton factory class and will post a link to the sample when I get a chance.

The ORM I found is named GStorm, and its repo is at:

https://github.com/kdabir/gstorm

NOTE: I had to build a local version and use the newly created Jar, as the one that was "grabbed" using grapes was built with an incompatible version of Java.

Also, what ORMs do you use for non Grails applications?

I stayed a way from using Hibernate for my CRUD example, as I didn't want to make it any more difficult. If I want to use Hibernate and another ORM, I guess I could use Grails.

Let me know what you all think of this find?

Dave
Reply | Threaded
Open this post in threaded view
|

Re: Simple ORM for Groovy and Ratpack

dbirtwell
Here a Github repo with my sample GStorm ORM factory code:

https://github.com/dbirtwell/gstorm_factory_example

Hope someone can find it of use.

Dave
Reply | Threaded
Open this post in threaded view
|

Re: Simple ORM for Groovy and Ratpack

Luke Daley
Administrator
In reply to this post by dbirtwell
Looks like a good fit for small Ratpack apps.

I've also been looking at http://www.jdbi.org/ as a persistence solution. Though, it's not an ORM.
Reply | Threaded
Open this post in threaded view
|

Re: Simple ORM for Groovy and Ratpack

dbirtwell
In reply to this post by dbirtwell
I revised my GitHub repo example to expose a closeConnection() method to be called to make sure the connection resources are closed and freed.