Skip to content

Commit

Permalink
Merge pull request #453 from erikahlswede/3.1.x
Browse files Browse the repository at this point in the history
Adding Grails 3 clarification on adding Hibernate to build classpath for grails schema-export
  • Loading branch information
graemerocher committed Apr 21, 2016
2 parents 5545a08 + 2ac0bef commit 4e3107f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/en/ref/Command Line/schema-export.gdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@ h1. schema-export
h2. Purpose

Uses Hibernate's SchemaExport tool to generate DDL or export the schema.
NOTE: As of Grails 3, the Hibernate plugin is not by default on the build classpath. You need to add it to the build classpath to get the command working.

h2. Examples

{code:java}
//Add Hibernate to the build classpath
buildscript {
dependencies {
classpath "org.grails.plugins:hibernate:4.3.8.0"
}
}
{code}


{code:java}
grails schema-export
grails schema-export --datasource=lookup
Expand All @@ -30,3 +41,4 @@ Arguments:
* @stdout@ - Passing 'stdout' will cause the script to dump the ddl to stdout.
* @filename@ - The name of the file to write the ddl to. The default is ddl.sql in the project's 'target' directory.
* @datasource@ - The @DataSource@ name suffix; defaults to the default @DataSource@ if not specified

0 comments on commit 4e3107f

Please sign in to comment.