You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mi...@apache.org on 2011/04/08 03:59:07 UTC

svn commit: r1090086 [3/3] - in /openjpa/trunk: ./ openjpa-tools/ openjpa-tools/openjpa-maven-plugin/ openjpa-tools/openjpa-maven-plugin/src/ openjpa-tools/openjpa-maven-plugin/src/it/ openjpa-tools/openjpa-maven-plugin/src/it/default_settings/ openjpa...

Added: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java?rev=1090086&view=auto
==============================================================================
--- openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java (added)
+++ openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java Fri Apr  8 01:59:02 2011
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.openjpa.tools.maven.testentity;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+
+@Entity
+public class TestEntity {
+
+  @Id
+  private int xint1;
+
+  private String string1;
+
+  public TestEntity() {
+  }
+
+  public TestEntity(int int1, String string1) {
+    this.xint1 = int1;
+    this.string1 = string1;
+  }
+
+  public int getInt1() {
+    return xint1;
+  }
+
+  public void setInt1(int int1) {
+    this.xint1 = int1;
+  }
+
+  public String getString1() {
+    return string1;
+  }
+
+  public void setString1(String string1) {
+    this.string1 = string1;
+  }
+
+  public String toString()  {
+    return xint1 + ":" + string1;
+  }
+
+}

Propchange: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml?rev=1090086&view=auto
==============================================================================
--- openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml (added)
+++ openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml Fri Apr  8 01:59:02 2011
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+    
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements. See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
+        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+    version="1.0">
+
+    <!-- simply all annotated persistent entities will be part of this unit -->
+    <persistence-unit name="TestUnit">
+        <class>org.apache.openjpa.tools.maven.testentity.TestEntity</class>
+
+        <properties>
+            <property name="openjpa.jdbc.DBDictionary" value="hsql" />
+            <property name="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver" />
+            <property name="openjpa.ConnectionURL" value="jdbc:hsqldb:file:target/db" />
+            <property name="openjpa.ConnectionUserName" value="sa" />
+            <property name="openjpa.ConnectionPassword" value="" />
+            <property name="openjpa.Log" value="DefaultLevel=TRACE" />
+            <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
+        </properties>
+
+    </persistence-unit>
+
+</persistence>
+

Propchange: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml?rev=1090086&view=auto
==============================================================================
--- openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml (added)
+++ openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml Fri Apr  8 01:59:02 2011
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+<project>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>openjpa-maven-plugin</artifactId>
+        <configuration>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml?rev=1090086&view=auto
==============================================================================
--- openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml (added)
+++ openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml Fri Apr  8 01:59:02 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+  version="1.0">
+  <persistence-unit name="openjpa-test">
+    <provider>
+      org.apache.openjpa.persistence.PersistenceProviderImpl
+    </provider>
+
+    <class>org.apache.openjpa.tools.maven.testentity.Person</class>
+
+    <properties>
+      <property name="openjpa.ConnectionURL"
+        value="jdbc:hsqldb:mem:test" />
+      <property name="openjpa.ConnectionDriverName"
+        value="org.hsqldb.jdbcDriver" />
+      <property name="openjpa.ConnectionUserName" value="sa" />
+      <property name="openjpa.ConnectionPassword" value="" />
+      <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO" />
+    </properties>
+
+  </persistence-unit>
+</persistence>

Propchange: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml?rev=1090086&view=auto
==============================================================================
--- openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml (added)
+++ openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml Fri Apr  8 01:59:02 2011
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
+  version="1.0">
+
+  <entity class="org.apache.openjpa.tools.maven.testentity.Person">
+    <table name="PERSON" />
+    <attributes>
+      <id name="id">
+        <column name="ID" />
+        <generated-value />
+      </id>
+      <basic name="name">
+        <column name="NAME" />
+      </basic>
+      <basic name="age">
+        <column name="AGE" />
+      </basic>
+    </attributes>
+  </entity>
+
+</entity-mappings>

Propchange: openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/openjpa-tools/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-tools/pom.xml?rev=1090086&view=auto
==============================================================================
--- openjpa/trunk/openjpa-tools/pom.xml (added)
+++ openjpa/trunk/openjpa-tools/pom.xml Fri Apr  8 01:59:02 2011
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+<!--
+    Maven release plugin requires the project tag to be on a single line.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.openjpa</groupId>
+        <artifactId>openjpa-parent</artifactId>
+        <version>2.2.0-SNAPSHOT</version>
+<!--        <relativePath>../pom.xml</relativePath>-->
+    </parent>
+
+    <artifactId>openjpa-tools</artifactId>
+    <packaging>pom</packaging>
+
+    <name>OpenJPA tools</name>
+
+    <properties>
+        <checkstyle.config.location>${project.basedir}/../../openjpa-project/checkstyle.xml</checkstyle.config.location>
+    </properties>
+
+    <modules>
+        <module>openjpa-maven-plugin</module>
+    </modules>
+</project>

Propchange: openjpa/trunk/openjpa-tools/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: openjpa/trunk/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1090086&r1=1090085&r2=1090086&view=diff
==============================================================================
--- openjpa/trunk/pom.xml (original)
+++ openjpa/trunk/pom.xml Fri Apr  8 01:59:02 2011
@@ -159,6 +159,7 @@
         <module>openjpa-examples</module>
         <module>openjpa-integration</module>
         <module>openjpa-all</module>
+        <module>openjpa-tools</module>
     </modules>
 
     <profiles>