-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added create-hibernate-cfg-xml in references to fix #302
- Loading branch information
dhanendrajfts
committed
Aug 6, 2015
1 parent
5a44627
commit 8536796
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |