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