(Quick Reference)

1 Introduction - Reference Documentation

Authors: Graeme Rocher

Version: 5.0.8.RELEASE

Table of Contents

1 Introduction

GORM for Hibernate is the original implementation of GORM and has evolved dramatically over the years from a few meta-programming functions into a complete data access framework with multile implementations for different datastores relational and NoSQL.

The full documentation for GORM for Hibernate can be found in the Grails User Guide, this documentation serves to explain how to get started with GORM for Hibernate with or without Grails and to document release notes.

1.1 Upgrade Notes

Since GORM 5, GORM for Hibernate has been rewritten to support Hibernate 3, 4 and 5 and also to support both Grails 2.x and Grails 3.x.

To make this possible the internals of GORM have been heavily refactored and some common previously used classes replaced.

Below is a list of removed or deprecated classes and appropriate replacements:

  • org.grails.orm.hibernate.ConfigurableLocalSessionFactoryBean - Replaced by org.grails.orm.hibernate.HibernateMappingContextSessionFactoryBean
  • org.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration - Replaced by org.grails.orm.hibernate.HibernateMappingContextConfiguration

In addition GORM used to use meta-programming to enhance classes, now traits and compile time AST transformations are used exclusively. This means that support for Java entities and JPA entities have been removed. If you need those features you can use a version prior to the 5.x release.