Skip to content

Commit

Permalink
Added create-hibernate-cfg-xml in references to fix #302
Browse files Browse the repository at this point in the history
  • Loading branch information
dhanendrajfts committed Aug 6, 2015
1 parent 5a44627 commit 8536796
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/en/ref/Command Line/create-hibernate-cfg-xml.gdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
h3. Purpose

The create-hibernate-cfg-xml command will create a hibernate.cfg.xml file for custom Hibernate mappings.

h3. Examples

{code}
grails create-hibernate-cfg-xml
{code}

h3. Description

Creates a hibernate.cfg.xml file in the grails-app/conf/hibernate directory. You can add <mapping> elements there to reference annotated Java domain classes, classes mapped by hbm.xml files, or hbm.xml files containing <database-object> elements defining custom DDL that's not supported by GORM.

Usage:

{code}
grails create-hibernate-cfg-xml
{code}

Fired Events:

* CreatedFile - When the file is created

0 comments on commit 8536796

Please sign in to comment.