diff --git a/hibernate/plugin.jelly b/hibernate/plugin.jelly index 86c24716..7e0c384f 100644 --- a/hibernate/plugin.jelly +++ b/hibernate/plugin.jelly @@ -21,7 +21,7 @@ > + xmlns:h="jelly:org.apache.maven.hibernate.jelly.HibernateTagLibrary"> @@ -29,7 +29,7 @@ - + Exporting Hibernate Schema file diff --git a/hibernate/src/plugin-test/maven.xml b/hibernate/src/plugin-test/maven.xml new file mode 100644 index 00000000..720b243c --- /dev/null +++ b/hibernate/src/plugin-test/maven.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + diff --git a/hibernate/src/plugin-test/project.properties b/hibernate/src/plugin-test/project.properties new file mode 100644 index 00000000..717cb168 --- /dev/null +++ b/hibernate/src/plugin-test/project.properties @@ -0,0 +1,2 @@ +maven.hibernate.properties=src/main/hibernate.properties +maven.hibernate.quiet=false \ No newline at end of file diff --git a/hibernate/src/plugin-test/project.xml b/hibernate/src/plugin-test/project.xml new file mode 100644 index 00000000..af0a1a53 --- /dev/null +++ b/hibernate/src/plugin-test/project.xml @@ -0,0 +1,160 @@ + + + + + + 3 + test-maven-hibernate-plugin + Test project for Maven Hibernate + maven + 1.0-SNAPSHOT + + Apache Software Foundation + http://www.apache.org/ + http://maven.apache.org/images/jakarta-logo-blue.gif + + 2001 + org.apache.maven + http://maven.apache.org/images/maven.jpg + Test for Maven Hibernate plugin + Test for Maven Hibernate plugin + http://maven.apache.org/reference/plugins/hibernate/ + /www/maven.apache.org/reference/plugins/hibernate/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/hibernate/src/plugin-test + http://cvs.apache.org/viewcvs/maven-plugins/hibernate/src/plugin-test + + + + Eric Pugh + epugh + epugh@opensourceconnections.com + OpenSource Connections + + Developer + + + + + + + hsqldb + hsqldb + 1.7.1 + jar + + + + hibernate + hibernate + 2.1.3 + jar + + + ant + ant + 1.5.3-1 + jar + + + commons-jelly + commons-jelly + 20030902.160215 + http://jakarta.apache.org/commons/jelly/ + + + commons-lang + commons-lang + 2.0 + jar + + + commons-beanutils + commons-beanutils + 1.6.1 + jar + + + commons-dbcp + commons-dbcp + 1.1 + jar + + + commons-collections + commons-collections + 2.1 + jar + + + commons-logging + commons-logging + 1.0.3 + jar + + + commons-pool + commons-pool + 1.1 + jar + + + log4j + log4j + 1.2.8 + jar + + + xml-apis + xml-apis + 1.0.b2 + http://xml.apache.org/xerces2-j/ + + + xerces + xerces + 2.4.0 + http://xml.apache.org/xerces2-j/ + + + odmg + odmg + 3.0 + jar + + + dom4j + dom4j + 1.4 + jar + + + + + src/main + + + src/main + + **/*.xml + + + + + diff --git a/hibernate/src/plugin-test/src/main/hibernate.properties b/hibernate/src/plugin-test/src/main/hibernate.properties new file mode 100644 index 00000000..764288af --- /dev/null +++ b/hibernate/src/plugin-test/src/main/hibernate.properties @@ -0,0 +1,7 @@ +hibernate.dialect net.sf.hibernate.dialect.HSQLDialect +hibernate.connection.driver_class org.hsqldb.jdbcDriver +hibernate.connection.username sa +hibernate.connection.password +hibernate.connection.url jdbc:hsqldb:hsql://localhost +hibernate.connection.url jdbc:hsqldb:test +hibernate.connection.url jdbc:hsqldb:. \ No newline at end of file diff --git a/hibernate/src/plugin-test/src/main/org/apache/maven/hibernate/Item.hbm.xml b/hibernate/src/plugin-test/src/main/org/apache/maven/hibernate/Item.hbm.xml new file mode 100644 index 00000000..70dd89d9 --- /dev/null +++ b/hibernate/src/plugin-test/src/main/org/apache/maven/hibernate/Item.hbm.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hibernate/src/plugin-test/src/main/org/apache/maven/hibernate/Item.java b/hibernate/src/plugin-test/src/main/org/apache/maven/hibernate/Item.java new file mode 100644 index 00000000..6b38ab19 --- /dev/null +++ b/hibernate/src/plugin-test/src/main/org/apache/maven/hibernate/Item.java @@ -0,0 +1,56 @@ +package org.apache.maven.hibernate; + +/* ==================================================================== + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ + +/** + * Class to use with testing the plugin. + * + * @author Eric Pugh + * + * @version $Id: Item.java,v 1.1 2004/07/02 06:16:56 epugh Exp $ + */ + +public class Item { + private int id; + private String name; + + /** + * @return Returns the id. + */ + public int getId() { + return id; + } + /** + * @param id The id to set. + */ + public void setId(int id) { + this.id = id; + } + /** + * @return Returns the name. + */ + public String getName() { + return name; + } + /** + * @param name The name to set. + */ + public void setName(String name) { + this.name = name; + } +}