diff --git a/hibernate/plugin.jelly b/hibernate/plugin.jelly index 320da34d..761798c7 100644 --- a/hibernate/plugin.jelly +++ b/hibernate/plugin.jelly @@ -54,6 +54,20 @@ includes="${maven.hibernate.input.includes}" excludes="${maven.hibernate.input.excludes}"/> + + + + Updating database schema + + + diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java index f74bee67..6760eb8b 100644 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java +++ b/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java @@ -24,7 +24,7 @@ import org.apache.commons.jelly.tags.core.CoreTagLibrary; * Hibernate tag library. * * @author Michal Maczka - * @version $Id: HibernateTagLibrary.java,v 1.3 2004/07/02 07:32:52 epugh Exp $ + * @version $Id: HibernateTagLibrary.java,v 1.4 2004/11/06 21:52:23 felipeal Exp $ */ public class HibernateTagLibrary extends CoreTagLibrary { @@ -35,6 +35,7 @@ public class HibernateTagLibrary extends CoreTagLibrary public HibernateTagLibrary() { registerTag( "schema-export", SchemaExportTag.class ); + registerTag( "schema-update", SchemaUpdateTag.class ); registerTag( "aggregate-mappings", AggregateMappingsTag.class ); } } diff --git a/hibernate/src/plugin-test/maven.xml b/hibernate/src/plugin-test/maven.xml index 3cf95216..c8092260 100644 --- a/hibernate/src/plugin-test/maven.xml +++ b/hibernate/src/plugin-test/maven.xml @@ -22,9 +22,13 @@ xmlns:maven="jelly:maven" xmlns:x="jelly:xml"> - + + + + + @@ -46,6 +50,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/hibernate/xdocs/changes.xml b/hibernate/xdocs/changes.xml index 6e866dd8..082926ab 100644 --- a/hibernate/xdocs/changes.xml +++ b/hibernate/xdocs/changes.xml @@ -25,6 +25,7 @@ + Added new goal hibernate:schema-update plugin:test fails without a network connection diff --git a/hibernate/xdocs/goals.xml b/hibernate/xdocs/goals.xml index ee8315c1..1a2196d6 100644 --- a/hibernate/xdocs/goals.xml +++ b/hibernate/xdocs/goals.xml @@ -33,7 +33,14 @@ hibernate:schema-export - Creates SQL DDL file from set of *.hbm.xml files + Creates SQL DDL file and generates the database schema from set of *.hbm.xml files + + + + + hibernate:schema-update + + Updates the database schema based on the set of *.hbm.xml files