Importing domain classes from GORM-standalone module into Grails

前端 未结 1 468

I have 2 pieces of my puzzle:

1) a no-Grails project named core-module with standalone GORM:

dependencies {
  compile \'org.grails:grails-da         


        
相关标签:
1条回答
  • 2021-01-28 12:16

    Grails only scans packages in the application by default for performance reasons. Override limitScanningToApplication() to return false in your Application class and define the packages you wish to scan by overriding packageNames() in your Application class.

    Grails will then automatically discover the Mongo GORM classes

    0 讨论(0)
提交回复
热议问题