views:

925

answers:

2

I'm currently wondering how it is possible to use the Groovy ORM Layer from Grails standalone outside of the Grails Framework. There is a Documentation Entry for doing so, but the ZIP file only links to an empty page. I downloaded Grails 1.2-M3 but I couldn't find anything in the docs either.

Does anybody know what the current state is and how to accomplish this?

+4  A: 

AFAIK it is possible to use GORM standalone since Grails 1.1. This allows you to use GORM as your ORM without using the full Grails framework

However, I don't think it's possible to use GORM outside of Spring (which is the foundation on which Grails is built). To summarise:

  • You can use GORM without using Grails
  • You cannot use GORM without using Spring

A sample application demonstrating how to use GORM outside Grails is available here. If you want to browse the source code of this example in a browser (instead of checking it out from the SVN repository), start here.

Don
Thanks a lot. I stumbled across the newsgroup entry but wasn't sure if it is already outdated. I'm using Spring in the project anyway so that requirement is no problem at all.
Daff
Please also see the 'Using GORM outside of Grails' (http://grails.org/GORM+-+StandAlone+Gorm) page on Grails Wiki.
binil
As I mentioned in my question this page didn't really help, the link is broken and the information is outdated.
Daff
+1  A: 

I don't know if this is too late, but this might help: http://www.integrallis.com/blog/tag/gorm

Rick
Welcome to SO. I got it running a while ago but this seems like a good tutorial.
Daff