geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r452700 - in /geronimo/sandbox/javaee5/itests-jee5: ./ jpa/ jpa/ear/ jpa/ejb/ jpa/ejb/src/ jpa/ejb/src/main/ jpa/ejb/src/main/java/ jpa/ejb/src/main/java/org/ jpa/ejb/src/main/java/org/apache/ jpa/ejb/src/main/java/org/apache/geronimo/ jpa/...
Date Wed, 04 Oct 2006 02:46:50 GMT
Author: djencks
Date: Tue Oct  3 19:46:49 2006
New Revision: 452700

URL: http://svn.apache.org/viewvc?view=rev&rev=452700
Log:
GERONIM0-2462 openjpa sample

Added:
    geronimo/sandbox/javaee5/itests-jee5/
    geronimo/sandbox/javaee5/itests-jee5/jpa/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ear/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml   (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml   (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml 
 (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml   (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml   (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
  (with props)
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/
    geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml   (with props)

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml (added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml Tue Oct  3 19:46:49 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<project>
+    <parent>
+        <artifactId>jpa</artifactId>
+        <groupId>org.apache.geronimo.itest</groupId>
+        <version>1.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>jpa-ear</artifactId>
+    <name>jpa itest ear</name>
+    <packaging>ear</packaging>
+    <!--<version>1.0-SNAPSHOT</version>-->
+    <url>http://maven.apache.org</url>
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <displayName>jpa Itest ear</displayName>
+                    <description>jpa Itest ear</description>
+                    <version>1.4</version>
+                    <modules>
+                        <webModule>
+                            <groupId>org.apache.geronimo.itest</groupId>
+                            <artifactId>jpa-war</artifactId>
+                            <contextRoot>/jpa</contextRoot>
+                            <bundleFileName>web.war</bundleFileName>
+                        </webModule>
+                        <ejbModule>
+                            <groupId>org.apache.geronimo.itest</groupId>
+                            <artifactId>jpa-ejb</artifactId>
+                            <bundleFileName>ejb.jar</bundleFileName>
+                        </ejbModule>
+                    </modules>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.itest</groupId>
+            <artifactId>jpa-ejb</artifactId>
+            <version>${pom.version}</version>
+            <type>ejb</type>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.itest</groupId>
+            <artifactId>jpa-war</artifactId>
+            <version>${pom.version}</version>
+            <type>war</type>
+        </dependency>
+    </dependencies>
+</project>

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ear/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml (added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml Tue Oct  3 19:46:49 2006
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<project>
+    <parent>
+        <artifactId>jpa</artifactId>
+        <groupId>org.apache.geronimo.itest</groupId>
+        <version>1.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>jpa-ejb</artifactId>
+    <name>jpa itest ejb jar</name>
+    <packaging>ejb</packaging>
+    <!--<version>1.0-SNAPSHOT</version>-->
+    <url>http://maven.apache.org</url>
+    <build>
+        <plugins>
+            <plugin>
+              <artifactId>maven-antrun-plugin</artifactId>
+              <executions>
+                <execution>
+                  <phase>compile</phase>
+                  <configuration>
+                    <tasks>
+                      <path id="enhance.path.ref">
+                        <fileset dir="${project.build.outputDirectory}">
+                          <include name="**/*.class"/>
+                        </fileset>
+                      </path>
+                      <pathconvert property="enhance.files"
+                                   refid="enhance.path.ref"
+                                   pathsep=" "/>
+                      <java classname="org.apache.openjpa.enhance.PCEnhancer">
+                        <arg line="-p persistence.xml"/>
+                        <arg line="${enhance.files}"/>
+                        <classpath>
+                          <path refid="maven.dependency.classpath"/>
+                          <path refid="maven.compile.classpath"/>
+                        </classpath>
+                      </java>
+                    </tasks>
+                  </configuration>
+                  <goals>
+                    <goal>run</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-ejb-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+          <groupId>org.apache.geronimo.specs</groupId>
+          <artifactId>geronimo-jpa_3.0_spec</artifactId>
+          <version>1.0-SNAPSHOT</version>
+        </dependency>
+        <!--<dependency>-->
+          <!--<groupId>org.apache.geronimo.specs</groupId>-->
+          <!--<artifactId>geronimo-activation_1.0.2_spec</artifactId>-->
+          <!--<version>1.0</version>-->
+        <!--</dependency>-->
+        <dependency>
+          <groupId>org.apache.geronimo.specs</groupId>
+          <artifactId>geronimo-jta_1.1_spec</artifactId>
+          <version>1.0-SNAPSHOT</version>
+          <scope>test</scope>
+        </dependency>
+        <dependency>
+          <groupId>org.apache.openjpa</groupId>
+          <artifactId>openjpa-persistence-jdbc</artifactId>
+          <version>0.9.0-incubating-SNAPSHOT</version>
+        </dependency>
+        <!--<dependency>-->
+          <!--<groupId>org.apache.derby</groupId>-->
+          <!--<artifactId>derby</artifactId>-->
+          <!--<version>10.1.3.1</version>-->
+        <!--</dependency>-->
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_2.1_spec</artifactId>
+            <version>1.0.1</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+            <version>2.6.2</version>
+        </dependency>
+
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xmlParserAPIs</artifactId>
+            <version>2.2.1</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,25 @@
+/**
+ *
+ * Copyright 2006 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.
+ */
+
+package org.apache.geronimo.itest;
+
+/**
+ * @version $Rev:$ $Date:$
+ */
+public interface TestSession  extends javax.ejb.EJBObject {
+    void testEntityManager();
+}

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSession.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,64 @@
+/**
+ *
+ * Copyright 2006 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.
+ */
+
+package org.apache.geronimo.itest;
+
+import javax.ejb.SessionBean;
+import javax.ejb.EJBException;
+import javax.ejb.SessionContext;
+import javax.naming.InitialContext;
+import javax.persistence.EntityManager;
+
+import org.apache.geronimo.itest.jpa.AllFieldTypes;
+
+/**
+ * @version $Rev:$ $Date:$
+ */
+public class TestSessionBean implements SessionBean {
+
+    SessionContext sessionContext;
+
+    public void testEntityManager() {
+        try {
+            EntityManager entityManager = (EntityManager) new InitialContext().lookup("java:comp/env/jpa/test");
+            System.out.println("Accessed entity manager");
+            AllFieldTypes allFieldTypes = new AllFieldTypes();
+            entityManager.persist(allFieldTypes);
+            System.out.println("saved object");
+        } catch (Exception e) {
+            e.printStackTrace();
+            System.out.println("Could not access entity manager");
+        }
+    }
+
+    public void ejbCreate() {
+        System.out.println("TestSessionBean");
+    }
+
+    public void ejbActivate() throws EJBException {
+    }
+
+    public void ejbPassivate() throws EJBException {
+    }
+
+    public void ejbRemove() throws EJBException {
+    }
+
+    public void setSessionContext(SessionContext sessionContext) throws EJBException {
+        this.sessionContext = sessionContext;
+    }
+}

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,31 @@
+/**
+ *
+ * Copyright 2006 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.
+ */
+
+package org.apache.geronimo.itest;
+
+import java.rmi.RemoteException;
+
+import javax.ejb.CreateException;
+
+/**
+ * @version $Rev:$ $Date:$
+ */
+public interface TestSessionHome  extends javax.ejb.EJBHome {
+
+    public TestSession create( ) throws RemoteException, CreateException;
+
+}
\ No newline at end of file

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/TestSessionHome.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,142 @@
+/**
+ *
+ * Copyright 2006 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.
+ */
+package org.apache.geronimo.itest.jpa;
+
+
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Set;
+import javax.persistence.Entity;
+
+/**
+ * Mr. Bott's Every Field Bean
+ *
+ * Taken from openjpa-persistence-jdbc
+ */
+
+@Entity
+public class AllFieldTypes {
+
+    private short shortField;
+    private int intField;
+    private boolean booleanField;
+    private long longField;
+    private float floatField;
+    private char charField;
+    private double doubleField;
+    private byte byteField;
+    private String stringField;
+    private Date dateField;
+    private Set<String> setOfStrings = new HashSet<String>();
+    private String[] arrayOfStrings;
+
+    public void setShortField(short shortField) {
+        this.shortField = shortField;
+    }
+
+    public short getShortField() {
+        return this.shortField;
+    }
+
+    public void setIntField(int intField) {
+        this.intField = intField;
+    }
+
+    public int getIntField() {
+        return this.intField;
+    }
+
+    public void setBooleanField(boolean booleanField) {
+        this.booleanField = booleanField;
+    }
+
+    public boolean getBooleanField() {
+        return this.booleanField;
+    }
+
+    public void setLongField(long longField) {
+        this.longField = longField;
+    }
+
+    public long getLongField() {
+        return this.longField;
+    }
+
+    public void setFloatField(float floatField) {
+        this.floatField = floatField;
+    }
+
+    public float getFloatField() {
+        return this.floatField;
+    }
+
+    public void setCharField(char charField) {
+        this.charField = charField;
+    }
+
+    public char getCharField() {
+        return this.charField;
+    }
+
+    public void setDoubleField(double doubleField) {
+        this.doubleField = doubleField;
+    }
+
+    public double getDoubleField() {
+        return this.doubleField;
+    }
+
+    public void setByteField(byte byteField) {
+        this.byteField = byteField;
+    }
+
+    public byte getByteField() {
+        return this.byteField;
+    }
+
+    public void setStringField(String stringField) {
+        this.stringField = stringField;
+    }
+
+    public String getStringField() {
+        return this.stringField;
+    }
+
+    public void setDateField(Date dateField) {
+        this.dateField = dateField;
+    }
+
+    public Date getDateField() {
+        return this.dateField;
+    }
+
+    public void setSetOfStrings(Set<String> setOfStrings) {
+        this.setOfStrings = setOfStrings;
+    }
+
+    public Set<String> getSetOfStrings() {
+        return this.setOfStrings;
+    }
+
+    public void setArrayOfStrings(String[] arrayOfStrings) {
+        this.arrayOfStrings = arrayOfStrings;
+    }
+
+    public String[] getArrayOfStrings() {
+        return this.arrayOfStrings;
+    }
+}

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/java/org/apache/geronimo/itest/jpa/AllFieldTypes.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml (added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml Tue
Oct  3 19:46:49 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 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.
+-->
+<ejb-jar version="2.1"
+         xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
+    <display-name>jpa itest ejb</display-name>
+    <enterprise-beans>
+        <session>
+            <description>JPA Itest ejb</description>
+            <display-name>TestSession</display-name>
+            <ejb-name>TestSession</ejb-name>
+            <home>org.apache.geronimo.itest.TestSessionHome</home>
+            <remote>org.apache.geronimo.itest.TestSession</remote>
+            <ejb-class>org.apache.geronimo.itest.TestSessionBean</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+        </session>
+    </enterprise-beans>
+</ejb-jar>

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 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.
+-->
+<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
+    <environment>
+        <moduleId>
+            <groupId>default</groupId>
+            <artifactId>jpa-ejb</artifactId>
+            <version>1.2-SNAPSHOT</version>
+            <type>car</type>
+        </moduleId>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.geronimo.configs</groupId>
+                <artifactId>system-database</artifactId>
+                <type>car</type>
+            </dependency>
+
+            <dependency>
+                <groupId>org.apache.geronimo.configs</groupId>
+                <artifactId>transaction-jta11</artifactId>
+                <type>car</type>
+            </dependency>
+
+            <dependency>
+                 <groupId>org.apache.openjpa</groupId>
+                 <artifactId>openjpa-all</artifactId>
+             </dependency>
+
+             <dependency>
+                 <groupId>net.sourceforge.serp</groupId>
+                 <artifactId>serp</artifactId>
+             </dependency>
+
+             <dependency>
+                 <groupId>commons-collections</groupId>
+                 <artifactId>commons-collections</artifactId>
+             </dependency>
+
+             <dependency>
+                 <groupId>commons-lang</groupId>
+                 <artifactId>commons-lang</artifactId>
+             </dependency>
+
+        </dependencies>
+    </environment>
+    <enterprise-beans>
+        <session>
+            <ejb-name>TestSession</ejb-name>
+            <persistence-context-ref>
+                <persistence-context-ref-name>jpa/test</persistence-context-ref-name>
+                <persistence-unit-name>test-unit</persistence-unit-name>
+                <persistence-context-type>transaction-scoped</persistence-context-type>
+            </persistence-context-ref>
+        </session>
+    </enterprise-beans>
+
+    <gbean name="test-unit" class="org.apache.geronimo.persistence.PersistenceUnitGBean">
+        <attribute name="persistenceUnitName">test-unit</attribute>
+        <attribute name="persistenceProviderClassName">org.apache.openjpa.persistence.PersistenceProviderImpl</attribute>
+        <attribute name="persistenceUnitTransactionType">JTA</attribute>
+        <attribute name="properties">
+            org.apache.openjpa.jdbc.DBDictionary=org.apache.openjpa.jdbc.sql.DerbyDictionary
+            org.apache.openjpa.jdbc.SynchronizeMappings=buildSchema(ForeignKeys=true)
+            org.apache.openjpa.TransactionMode=managed
+            org.apache.openjpa.ConnectionFactoryMode=managed
+        </attribute>
+        <reference name="JtaDataSourceWrapper">
+            <name>SystemDatasource</name>
+        </reference>
+        <reference name="NonJtaDataSourceWrapper">
+            <name>NoTxDatasource</name>
+        </reference>
+        <reference name="TransactionManager">
+            <name>TransactionManager</name>
+        </reference>
+    </gbean>
+</openejb-jar>

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+
+    <persistence-unit transaction-type="RESOURCE_LOCAL" name="openjpa-itest">
+
+
+        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+        <class>org.apache.geronimo.itest.jpa.AllFieldTypes</class>
+        <exclude-unlisted-classes/>
+        <properties>
+            <property name="org.apache.openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DerbyDictionary"/>
+            <property name="org.apache.openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+            <property name="org.apache.openjpa.Sequence" value="table(Table=OPENJPASEQ,
Increment=100)"/>
+        </properties>
+    </persistence-unit>
+</persistence>
\ No newline at end of file

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/ejb/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml (added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml Tue Oct  3 19:46:49 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+    <parent>
+        <groupId>org.apache.geronimo</groupId>
+        <artifactId>geronimo-jee5</artifactId>
+        <version>1.2-SNAPSHOT</version>
+    </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.geronimo.itest</groupId>
+  <artifactId>jpa</artifactId>
+  <packaging>pom</packaging>
+  <!--<version>1.0-SNAPSHOT</version>-->
+  <name>jpa itest</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <modules>
+    <module>ejb</module>
+    <module>war</module>
+    <module>ear</module>
+  </modules>
+</project>

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml (added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml Tue Oct  3 19:46:49 2006
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<project>
+    <parent>
+        <artifactId>jpa</artifactId>
+        <groupId>org.apache.geronimo.itest</groupId>
+        <version>1.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>jpa-war</artifactId>
+    <name>jpa war</name>
+    <packaging>war</packaging>
+    <!--<version>1.0-SNAPSHOT</version>-->
+    <url>http://maven.apache.org</url>
+    <build>
+        <plugins>
+            <!--<plugin>-->
+                <!--<groupId>org.apache.maven.plugins</groupId>-->
+                <!--<artifactId>maven-war-plugin</artifactId>-->
+            <!--</plugin>-->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.0.1</version>
+                <configuration>
+                    <warSourceDirectory>${pom.basedir}/src/main/webapp</warSourceDirectory>
+                    <webXml>${pom.basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
+                    <archiveClasses>true</archiveClasses>
+                    <archive>
+                        <!-- Do not include META-INF/maven to avoid long file problems
on windows -->
+                        <addMavenDescriptor>false</addMavenDescriptor>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.itest</groupId>
+            <artifactId>jpa-ejb</artifactId>
+            <version>${pom.version}</version>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.5_spec</artifactId>
+            <version>1.0.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_2.1_spec</artifactId>
+            <version>1.0.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.modules</groupId>
+            <artifactId>geronimo-security</artifactId>
+            <version>1.2-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+</project>

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
(added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
Tue Oct  3 19:46:49 2006
@@ -0,0 +1,60 @@
+/**
+ *
+ * Copyright 2006 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.
+ */
+
+package org.apache.geronimo.itest;
+
+import java.io.IOException;
+import java.rmi.RemoteException;
+
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.ServletException;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.ejb.CreateException;
+
+
+/**
+ * @version $Rev:$ $Date:$
+ */
+public class TestServlet extends HttpServlet {
+
+    public void init() {
+        System.out.println("Test Servlet init");
+    }
+
+    protected void service(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
throws ServletException, IOException {
+        httpServletResponse.getOutputStream().print("TestServlet");
+        try {
+            InitialContext ctx = new InitialContext();
+            TestSessionHome home = (TestSessionHome)ctx.lookup("java:comp/env/TestSession");
+            home.create().testEntityManager();
+            httpServletResponse.getOutputStream().print("Test Servlet looked up java:comp/env/TestSession");
+        } catch (NamingException e) {
+            System.out.print("Exception:");
+            e.printStackTrace();
+        } catch (RemoteException e) {
+            e.printStackTrace();
+        } catch (CreateException e) {
+            e.printStackTrace();
+        }
+        httpServletResponse.flushBuffer();
+    }
+
+
+}

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/java/org/apache/geronimo/itest/TestServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml?view=auto&rev=452700
==============================================================================
--- geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml Tue Oct 
3 19:46:49 2006
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Copyright 2006 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.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4"
+        >
+
+    <display-name>Geronimo EJBRef Itest War</display-name>
+
+    <servlet>
+        <display-name>Manifest ClassPath itest servlet</display-name>
+        <servlet-name>servlet</servlet-name>
+        <servlet-class>org.apache.geronimo.itest.TestServlet</servlet-class>
+        <load-on-startup>0</load-on-startup>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>servlet</servlet-name>
+        <url-pattern>/servlet</url-pattern>
+    </servlet-mapping>
+
+    <ejb-ref>
+        <ejb-ref-name>TestSession</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <home>org.apache.geronimo.itest.TestSessionHome</home>
+        <remote>org.apache.geronimo.itest.TestSession</remote>
+    </ejb-ref>
+
+<!--
+    <security-constraint>
+        <display-name>All</display-name>
+        <web-resource-collection>
+            <web-resource-name>secureServlet</web-resource-name>
+            <url-pattern>/servlet</url-pattern>
+            <http-method>GET</http-method>
+            <http-method>POST</http-method>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>All Authenticated</description>
+            <role-name>Authenticated</role-name>
+            <role-name>Everybody</role-name>
+        </auth-constraint>
+        <user-data-constraint>
+            <transport-guarantee>NONE</transport-guarantee>
+        </user-data-constraint>
+    </security-constraint>
+    <login-config>
+        <auth-method>BASIC</auth-method>
+        <realm-name>TestRealm</realm-name>
+    </login-config>
+    <security-role>
+        <role-name>Authenticated</role-name>
+    </security-role>
+    <security-role>
+        <role-name>Everybody</role-name>
+    </security-role>
+-->
+
+
+</web-app>
\ No newline at end of file

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/javaee5/itests-jee5/jpa/war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message