Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/sql.apt URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/sql.apt?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/sql.apt (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/sql.apt Mon Jun 2 11:07:07 2014 @@ -0,0 +1,47 @@ + ------ + SQL + ------ + Mark Struberg + <[email protected]> + ------ + November 29, 2010 + ------ + +SQL + + The following build configuration shows how to use the OpenJPA + MappingTool for generating the SQL file for creating a fresh database. + Please consult the OpenJPA documentation for more + details on the SQL file creation. + + The {{{../sql-mojo.html}openjpa:sql}} mojo will typically + be called manually, so there is no <<<executions>>> section. + +------------------- +<project> + [...] + <build> + [...] + <plugins> + <plugin> + <groupId>org.apache.openjpa</groupId> + <artifactId>openjpa-maven-plugin</artifactId> + <version>1.2</version> + <sqlAction>build</sqlAction> + <sqlFile>src/main/sql/create.sql</sqlFile> + </plugin> + [...] + </plugins> + [...] + </build> + [...] +</project> +------------------- + + + * If no <<<sqlFile>>> is set this will default to <<<target/database.sql>>> + + * If no <<<sqlAction>>> is set it will default to <<<build>>> + + Please consult the OpenJPA documentation for a list of valid <<<sqlAction>>>s. + \ No newline at end of file
Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/testenhance.apt URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/testenhance.apt?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/testenhance.apt (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/examples/testenhance.apt Mon Jun 2 11:07:07 2014 @@ -0,0 +1,49 @@ + ------ + Enhance + ------ + Mark Struberg + <[email protected]> + ------ + April 03, 2009 + ------ + +Test Enhance + + The following build configuration shows how to enhance JPA entities + which are needed for testing only. + + The {{{../test-enhance-mojo.html}openjpa:test-enhance}} mojo will typically be + called in the <<<process-test-classes>>> phase. + + Please note that the tmpClassLoader defaults to <<<false>>> to make + sure that classes in depending artifacts (like enums in interfaces) + can be parsed by the PCEnhancer. + +------------------- +<project> + [...] + <build> + [...] + <plugins> + <plugin> + <groupId>org.apache.openjpa</groupId> + <artifactId>openjpa-maven-plugin</artifactId> + <version>1.2</version> + <executions> + <execution> + <id>testEnhancer</id> + <phase>process-test-classes</phase> + <goals> + <goal>test-enhance</goal> + </goals> + </execution> + </executions> + </plugin> + [...] + </plugins> + [...] + </build> + [...] +</project> +------------------- + \ No newline at end of file Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/index.apt URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/index.apt?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/index.apt (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/index.apt Mon Jun 2 11:07:07 2014 @@ -0,0 +1,47 @@ + ------ + Introduction + ------ + Rahul Thakur, Mark Struberg + ------ + November 29, 2010 + ------ + +OpenJPA Maven Plugin + + This plugin provides useful tasks for building and maintaining + an OpenJPA project with maven. All goals work on a given set of + JPA entities. + +* Goals Overview + + * {{{enhance-mojo.html}openjpa:enhance}} Enhance the entity classes with persistence functionality. + + * {{{sql-mojo.html}openjpa:sql}} Create a file with SQL statements, with e.g. CREATE TABLE statements + + * {{{schema-mojo.html}openjpa:schema}} Create a file which contains the schema mapping XML + + * {{{test-enhance-mojo.html}openjpa:test-enhance}} Enhance the entity classes in the test classpath with persistence functionality. + + [] + + +* Usage + + Instructions on how to use the OpenJPA Maven Plugin can be found on the {{{usage.html}usage page}}. + + +* Examples + + * {{{examples/enhance.html} JPA enhancement example.}} + + * {{{examples/sql.html} SQL maintenance strategies.}} + + * {{{examples/schema.html} Schema mapping example.}} + + * {{{examples/testenhance.html} JPA enhancement for test classes example.}} + + * {{{examples/credentials.html} Manually setting.the credentials for accessing the database at build time }} + + [] + + \ No newline at end of file Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/usage.apt URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/usage.apt?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/usage.apt (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/apt/usage.apt Mon Jun 2 11:07:07 2014 @@ -0,0 +1,108 @@ + ------ + Introduction + ------ + Rahul Thakur, Mark Struberg + ------ + November 29, 2010 + ------ + +OpenJPA Maven Plugin + + As of this writing the OpenJPA Plugin provides 3 goals to + cope with persistence-enabled classes in a project using Maven 2. + + +* Goals Overview + + * <<<openjpa:enhance>>> enhances the persistence-enabled classes in a + project. + + * <<<openjpa:test-enhance>>> enhances the persistence-enabled test classes in a + project. This is typically bound to the process-test-classes phase. + + * <<<openjpa:sql>>> creates a file which contains the SQL statements + for creating or updating the database or directly create the schema + in the database. + + * <<<openjpa:schema>>> create the schema mapping XML file + + All these OpenJPA Mojos expect the following resources to be + present on classpath: + + * <<<META-INF/persistence.xml>>>, or + + * <<<META-INF/openjpa.xml>>> + + OpenJPA documentation is available + {{{http://openjpa.apache.org/documentation.html}here}}. + + +* Examples + + Below is an OpenJPA plugin configuration example. + ++----------+ + <plugin> + <groupId>org.apache.openjpa</groupId> + <artifactId>openjpa-maven-plugin</artifactId> + <version>1.2</version> + <configuration> + <includes>com/myproject/entities/**/*.class</includes> + <addDefaultConstructor>true</addDefaultConstructor> + <enforcePropertyRestrictions>true</enforcePropertyRestrictions> + + <!-- Pass additional properties to the Plugin here --> + <toolProperties> + <property> + <name>directory</name> + <value>otherdirectoryvalue</value> + </property> + </toolProperties> + + </configuration> + <executions> + <execution> + <id>enhancer</id> + <phase>process-classes</phase> + <goals> + <goal>enhance</goal> + </goals> + </execution> + </executions> + + </plugin> ++-----------+ + + * You don't have to explicitly specify an OpenJPA dependency in the dependencies section + of the plugin! Follow the following guide to use this plugin with {{{examples/older_versions.html}older OpenJPA versions}}. + + + * The <<<openjpa:enhance>>> mojo will automatically be called in the + <<<process-classes>>> phase. + + From the command prompt/terminal window. + + * Change directory to the project's root directory. + + * Run the following goal to run OpenJPA PCEnhancer on persistence-enabled + classes manually. + +---------- + mvn openjpa:enhance +---------- + + + * Run the following goal to run OpenJPA MappingTool for creating the + database creation SQL statements for all persistence-enabled classes manually. + +---------- + mvn openjpa:sql +---------- + + + * Run the following goal to run OpenJPA MappingTool for creating the + schema mapping XML file for all persistence-enabled classes manually. + +---------- + mvn openjpa:schema +---------- Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/site.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/site.xml?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/site.xml (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/site/site.xml Mon Jun 2 11:07:07 2014 @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!-- + | Copyright 2007-2010 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. + | +--> + +<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"> + <body> + <menu name="Overview"> + <item name="Introduction" href="index.html" /> + <item name="Usage" href="usage.html" /> + <item name="Goals" href="plugin-info.html" /> + </menu> + <menu name="Examples"> + <item name="Enhance" href="examples/enhance.html" /> + <item name="SQL" href="examples/sql.html" /> + <item name="Schema" href="examples/schema.html" /> + <item name="TestEnhance" href="examples/testenhance.html" /> + </menu> + </body> +</project> \ No newline at end of file Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/OpenJpaEnhancerMojoTest.java URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/OpenJpaEnhancerMojoTest.java?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/OpenJpaEnhancerMojoTest.java (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/OpenJpaEnhancerMojoTest.java Mon Jun 2 11:07:07 2014 @@ -0,0 +1,51 @@ +/* + * 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; + +import java.io.File; +import java.util.ArrayList; + +import org.apache.maven.plugin.testing.AbstractMojoTestCase; +import org.apache.openjpa.tools.maven.OpenJpaEnhancerMojo; + +/** + * @version $Id: OpenJpaEnhancerMojoTest.java 9348 2009-04-03 22:59:47Z struberg $ + * @since 1.0.0 + */ +public class OpenJpaEnhancerMojoTest extends AbstractMojoTestCase { + + public void setUp() throws Exception { + super.setUp(); + } + + + public void testExecution() throws Exception { + File testPom = new File( getBasedir(), "target/test-classes/projects/project-01/plugin-config.xml" ); + + OpenJpaEnhancerMojo mojo = (OpenJpaEnhancerMojo) lookupMojo( "enhance", testPom ); + assertNotNull( mojo ); + + mojo.classes = new File( getBasedir(), "target/test-classes/" ); + mojo.compileClasspathElements = new ArrayList<String>(); + mojo.compileClasspathElements.add( mojo.classes.getAbsolutePath() ); + + mojo.execute(); + } + +} Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/Person.java URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/Person.java?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/Person.java (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/Person.java Mon Jun 2 11:07:07 2014 @@ -0,0 +1,64 @@ +/* + * 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; + +@Entity +public class Person { + + private long id; + + private String name; + + private int age; + + public Person() { + } + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public Person(String name, int age) { + this.name = name; + + this.age = age; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } +} Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/java/org/apache/openjpa/tools/maven/testentity/TestEntity.java Mon Jun 2 11:07:07 2014 @@ -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; + } + +} Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/META-INF/persistence.xml Mon Jun 2 11:07:07 2014 @@ -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> + Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/plugin-config.xml Mon Jun 2 11:07:07 2014 @@ -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> Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/openjpa.xml Mon Jun 2 11:07:07 2014 @@ -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> Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/openjpa-maven-plugin/src/test/resources/projects/project-01/src/main/resources/META-INF/orm.xml Mon Jun 2 11:07:07 2014 @@ -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> Added: tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/pom.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/pom.xml?rev=1599164&view=auto ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/pom.xml (added) +++ tomee/deps/tags/openjpa-2.4.0-1598334/openjpa-tools/pom.xml Mon Jun 2 11:07:07 2014 @@ -0,0 +1,57 @@ +<?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.openejb.patch</groupId> + <artifactId>openjpa-parent</artifactId> + <version>2.4.0-nonfinal-1598334</version> +<!-- <relativePath>../pom.xml</relativePath>--> + </parent> + + <groupId>org.apache.openejb.patch</groupId> + <artifactId>openjpa-tools</artifactId> + <packaging>pom</packaging> + + <name>OpenJPA tools</name> + + <properties> + <checkstyle.config.location>${project.basedir}${file.separator}..${file.separator}..${file.separator}openjpa-project${file.separator}checkstyle.xml</checkstyle.config.location> + </properties> + + <modules> + <module>openjpa-maven-plugin</module> + </modules> + + <profiles> + <profile> + <id>test-dynamic-enhancer</id> + <properties> + <policy.file>${basedir}/../../openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy</policy.file> + </properties> + </profile> + </profiles> + +</project> Modified: tomee/deps/tags/openjpa-2.4.0-1598334/pom.xml URL: http://svn.apache.org/viewvc/tomee/deps/tags/openjpa-2.4.0-1598334/pom.xml?rev=1599164&r1=1599163&r2=1599164&view=diff ============================================================================== --- tomee/deps/tags/openjpa-2.4.0-1598334/pom.xml (original) +++ tomee/deps/tags/openjpa-2.4.0-1598334/pom.xml Mon Jun 2 11:07:07 2014 @@ -154,6 +154,7 @@ <module>openjpa-persistence-jdbc</module> <module>openjpa-persistence-locking</module> <module>openjpa</module> + <module>openjpa-tools</module> </modules> <profiles>
