Using Grails GORM standalone

后端 未结 2 1741
梦谈多话
梦谈多话 2020-12-29 11:13

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,

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 11:52

    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.

提交回复
热议问题