New version of GORM-JPA plugin available
I’ve just released a new version of the GORM-JPA plugin. Documentation is available here. This plugin differs from the older implementation in that it is based on the new Grails Data abstraction that I mentioned recently.
The plugin also includes an interesting use of Groovy AST transformations. There is an @JpaEntity transformation that transforms regular GORM syntax into a JPA entity at the byte code level. This is convenient for folks who prefer the GORM syntax but wish to map GORM entities to JPA. It even reads the mapping block form the ORM DSL and honors custom table / column name mappings etc.
The new version is also a full GORM implementation (not a partial implementation like the previous one) and even supports advanced features like the new Grails 2.0 where queries.
Like the previous plugin you either have to install the Hibernate JPA provider plugin or configure your own “entityManagerFactory” bean to use the plugin.