From 8536796f6a4f452f1a8d49681f1a8ba57e9bc7a7 Mon Sep 17 00:00:00 2001 From: dhanendrajfts Date: Thu, 6 Aug 2015 16:07:36 +0530 Subject: [PATCH] Added create-hibernate-cfg-xml in references to fix #302 --- .../create-hibernate-cfg-xml.gdoc | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/en/ref/Command Line/create-hibernate-cfg-xml.gdoc diff --git a/src/en/ref/Command Line/create-hibernate-cfg-xml.gdoc b/src/en/ref/Command Line/create-hibernate-cfg-xml.gdoc new file mode 100644 index 00000000000..47622568b28 --- /dev/null +++ b/src/en/ref/Command Line/create-hibernate-cfg-xml.gdoc @@ -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 elements there to reference annotated Java domain classes, classes mapped by hbm.xml files, or hbm.xml files containing 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 \ No newline at end of file