How to implement standalone GORM with latest libraries (spring 3, hibernate 4, maven 3)? [closed]

StackOverflow https://stackoverflow.com/questions/21604209

سؤال

Although there is an example of standalone using of Gorm, libraries of it are a bit old.

Is there a tutorial with minimum configuration of using Gorm in a maven 3 project with spring 3, hibernate 4 without grails?

لا يوجد حل صحيح

نصائح أخرى

It's now possible with grails a few grails 2.3.6 libraries :

@Grab("org.grails:grails-datastore-gorm-hibernate4:3.0.0.RELEASE")
@Grab("org.grails:grails-spring:2.3.6")
@Grab("com.h2database:h2:1.3.164")
...

The rest of the example is here : https://gist.github.com/graemerocher/c25ec929d9bcd1adcbea

Your best bet is to check the Gormish project. You can check the libraries in the build.gradle file.

Note that using the standalone GORM comes with some consequences:

  • You will have a GrailsApplication instance
  • This is tight to the servlet API
  • 40MB~ of dependencies
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top