My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 20, 2007 by spullara
Labels: Featured, Phase-Deploy
Grails  
Using dbmapper from Grails

Introduction

If you follow the GORM rules for tables in your database, this should work great.

Install the plugin

grails install-plugin dbmapper

Generate the classes

grails generate-domain-classes

This will create JPA domain classes in your grails-app/domain directory along with a hibernate.cfg.xml file within grails-app/conf/hibernate.

Modify your DataSource

You need to modify your main DataSource definition to support annotated Hibernate classes:

configClass = GrailsAnnotationConfiguration.class


Comment by simonlei, Nov 23, 2007

Doesn't support clob/blob yet?


Sign in to add a comment
Hosted by Google Code