You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by pc...@apache.org on 2008/02/15 10:20:40 UTC
svn commit: r627979 [15/39] - in /openjpa/trunk:
openjpa-lib/src/test/java/org/apache/openjpa/lib/test/
openjpa-persistence-jdbc/ openjpa-persistence-jdbc/src/test/java/
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/
openjpa-per...
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalA.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalA.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalA.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalA.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,47 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+/**
+ * Interface for intermediate horizontal mappings with flat mappings.
+ *
+ * @author <a href="mailto:marc@solarmetric.com">Marc Prud'hommeaux</a>
+ */
+public class HorizInterVerticalA
+ implements HorizInterA {
+
+ private String stringA;
+ private int intA;
+
+ public void setStringA(String stringA) {
+ this.stringA = stringA;
+ }
+
+ public String getStringA() {
+ return this.stringA;
+ }
+
+ public void setIntA(int intA) {
+ this.intA = intA;
+ }
+
+ public int getIntA() {
+ return this.intA;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalB.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalB.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalB.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalB.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,49 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+/**
+ * Interface for intermediate horizontal mappings with flat mappings.
+ *
+ * @author <a href="mailto:marc@solarmetric.com">Marc Prud'hommeaux</a>
+ */
+public class HorizInterVerticalB
+ extends HorizInterVerticalA
+ implements HorizInterB {
+
+ private String stringB;
+ private int intB;
+
+ public void setStringB(String stringB) {
+ this.stringB = stringB;
+ }
+
+ public String getStringB() {
+ return this.stringB;
+ }
+
+ public void setIntB(int intB) {
+ this.intB = intB;
+ }
+
+ public int getIntB() {
+ return this.intB;
+ }
+}
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,49 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+/**
+ * Interface for intermediate horizontal mappings with flat mappings.
+ *
+ * @author <a href="mailto:marc@solarmetric.com">Marc Prud'hommeaux</a>
+ */
+public class HorizInterVerticalC
+ extends HorizInterVerticalB
+ implements HorizInterC {
+
+ private String stringC;
+ private int intC;
+
+ public void setStringC(String stringC) {
+ this.stringC = stringC;
+ }
+
+ public String getStringC() {
+ return this.stringC;
+ }
+
+ public void setIntC(int intC) {
+ this.intC = intC;
+ }
+
+ public int getIntC() {
+ return this.intC;
+ }
+}
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalD.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalD.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalD.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizInterVerticalD.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,48 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+/**
+ * Interface for intermediate horizontal mappings with flat mappings.
+ *
+ * @author <a href="mailto:marc@solarmetric.com">Marc Prud'hommeaux</a>
+ */
+public class HorizInterVerticalD
+ extends HorizInterVerticalB
+ implements HorizInterD {
+
+ private String stringD;
+ private int intD;
+
+ public void setStringD(String stringD) {
+ this.stringD = stringD;
+ }
+
+ public String getStringD() {
+ return this.stringD;
+ }
+
+ public void setIntD(int intD) {
+ this.intD = intD;
+ }
+
+ public int getIntD() {
+ return this.intD;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizJ.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizJ.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizJ.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizJ.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,45 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+
+public class HorizJ
+ extends HorizD {
+
+ private String stringJ;
+ private int intJ;
+
+ public void setStringJ(String stringJ) {
+ this.stringJ = stringJ;
+ }
+
+ public String getStringJ() {
+ return this.stringJ;
+ }
+
+ public void setIntJ(int intJ) {
+ this.intJ = intJ;
+ }
+
+ public int getIntJ() {
+ return this.intJ;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizK.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizK.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizK.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizK.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,46 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+
+public class HorizK
+ extends HorizJ {
+
+ private String stringK;
+ private int intK;
+
+ public void setStringK(String stringK) {
+ this.stringK = stringK;
+ }
+
+ public String getStringK() {
+ return this.stringK;
+ }
+
+ public void setIntK(int intK) {
+ this.intK = intK;
+ }
+
+ public int getIntK() {
+ return this.intK;
+ }
+}
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizL.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizL.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizL.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizL.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,46 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+
+public class HorizL
+ extends HorizJ {
+
+ private String stringL;
+ private int intL;
+
+ public void setStringL(String stringL) {
+ this.stringL = stringL;
+ }
+
+ public String getStringL() {
+ return this.stringL;
+ }
+
+ public void setIntL(int intL) {
+ this.intL = intL;
+ }
+
+ public int getIntL() {
+ return this.intL;
+ }
+}
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizM.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizM.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizM.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizM.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,46 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+
+public class HorizM
+ extends HorizL {
+
+ private String stringM;
+ private int intM;
+
+ public void setStringM(String stringM) {
+ this.stringM = stringM;
+ }
+
+ public String getStringM() {
+ return this.stringM;
+ }
+
+ public void setIntM(int intM) {
+ this.intM = intM;
+ }
+
+ public int getIntM() {
+ return this.intM;
+ }
+}
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizN.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizN.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizN.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizN.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,47 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+
+public class HorizN
+ extends HorizM {
+
+ private String stringN;
+ private int intN;
+
+ public void setStringN(String stringN) {
+ this.stringN = stringN;
+ }
+
+ public String getStringN() {
+ return this.stringN;
+ }
+
+ public void setIntN(int intN) {
+ this.intN = intN;
+ }
+
+ public int getIntN() {
+ return this.intN;
+ }
+}
+
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizO.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizO.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizO.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizO.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,48 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+
+public class HorizO
+ extends HorizN {
+
+ private String stringO;
+ private int intO;
+
+ public void setStringO(String stringO) {
+ this.stringO = stringO;
+ }
+
+ public String getStringO() {
+ return this.stringO;
+ }
+
+ public void setIntO(int intO) {
+ this.intO = intO;
+ }
+
+ public int getIntO() {
+ return this.intO;
+ }
+}
+
+
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizRelation.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizRelation.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizRelation.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizRelation.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,404 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.io.*;
+import java.util.*;
+
+
+import org.apache.commons.collections.*;
+
+/**
+ * Normal class that has relations to and from various horizontal
+ * relations.
+ *
+ * @author <a href="mailto:marc@solarmetric.com">Marc Prud'hommeaux</a>
+ */
+public class HorizRelation
+ implements Serializable {
+ ///////////////////////
+ // One to one mappings
+ ///////////////////////
+
+ private HorizA obHorizA;
+ private HorizB obHorizB;
+ private HorizC obHorizC;
+ private HorizD obHorizD;
+ private HorizE obHorizE;
+ private HorizF obHorizF;
+ private HorizG obHorizG;
+ private HorizH obHorizH;
+ private HorizI obHorizI;
+ private HorizJ obHorizJ;
+ private HorizK obHorizK;
+ private HorizL obHorizL;
+ private HorizM obHorizM;
+ private HorizN obHorizN;
+ private HorizO obHorizO;
+ private HorizAppSingleA obHorizAppSingleA;
+ private HorizAppSingleB obHorizAppSingleB;
+ private HorizAppSingleC obHorizAppSingleC;
+ private HorizAppSingleD obHorizAppSingleD;
+ private HorizAppMultiA obHorizAppMultiA;
+ private HorizAppMultiB obHorizAppMultiB;
+ private HorizAppMultiC obHorizAppMultiC;
+ private HorizAppMultiD obHorizAppMultiD;
+ private HorizInterFlatA obHorizInterFlatA;
+ private HorizInterFlatB obHorizInterFlatB;
+ private HorizInterFlatC obHorizInterFlatC;
+ private HorizInterFlatD obHorizInterFlatD;
+ private HorizInterVerticalA obHorizInterVerticalA;
+ private HorizInterVerticalB obHorizInterVerticalB;
+ private HorizInterVerticalC obHorizInterVerticalC;
+ private HorizInterVerticalD obHorizInterVerticalD;
+
+ ////////////////////////
+ // One to many mappings
+ ////////////////////////
+
+ private HashSet cHorizA = new HashSet();
+ private LinkedList cHorizB = new LinkedList();
+ private ArrayList cHorizC = new ArrayList();
+ private Vector cHorizD = new Vector();
+ private HashSet cHorizE = new HashSet();
+ private LinkedList cHorizF = new LinkedList();
+ private ArrayList cHorizG = new ArrayList();
+ private Vector cHorizH = new Vector();
+ private HashSet cHorizI = new HashSet();
+ private LinkedList cHorizJ = new LinkedList();
+ private ArrayList cHorizK = new ArrayList();
+ private Vector cHorizL = new Vector();
+ private HashSet cHorizM = new HashSet();
+ private LinkedList cHorizN = new LinkedList();
+ private ArrayList cHorizO = new ArrayList();
+ private Vector cHorizAppSingleA = new Vector();
+ private HashSet cHorizAppSingleB = new HashSet();
+ private LinkedList cHorizAppSingleC = new LinkedList();
+ private ArrayList cHorizAppSingleD = new ArrayList();
+ private Vector cHorizAppMultiA = new Vector();
+ private HashSet cHorizAppMultiB = new HashSet();
+ private LinkedList cHorizAppMultiC = new LinkedList();
+ private ArrayList cHorizAppMultiD = new ArrayList();
+ private Vector cHorizInterFlatA = new Vector();
+ private HashSet cHorizInterFlatB = new HashSet();
+ private LinkedList cHorizInterFlatC = new LinkedList();
+ private ArrayList cHorizInterFlatD = new ArrayList();
+ private Vector cHorizInterVerticalA = new Vector();
+ private HashSet cHorizInterVerticalB = new HashSet();
+ private LinkedList cHorizInterVerticalC = new LinkedList();
+ private ArrayList cHorizInterVerticalD = new ArrayList();
+
+ public Map getCollections() {
+ Map map = new SequencedHashMap();
+ map.put("HorizA", cHorizA);
+ map.put("HorizB", cHorizB);
+ map.put("HorizC", cHorizC);
+ map.put("HorizD", cHorizD);
+ map.put("HorizE", cHorizE);
+ map.put("HorizF", cHorizF);
+ map.put("HorizG", cHorizG);
+ map.put("HorizH", cHorizH);
+ map.put("HorizI", cHorizI);
+ map.put("HorizJ", cHorizJ);
+ map.put("HorizK", cHorizK);
+ map.put("HorizL", cHorizL);
+ map.put("HorizM", cHorizM);
+ map.put("HorizN", cHorizN);
+ map.put("HorizO", cHorizO);
+ map.put("HorizAppSingleA", cHorizAppSingleA);
+ map.put("HorizAppSingleB", cHorizAppSingleB);
+ map.put("HorizAppSingleC", cHorizAppSingleC);
+ map.put("HorizAppSingleD", cHorizAppSingleD);
+ map.put("HorizAppMultiA", cHorizAppMultiA);
+ map.put("HorizAppMultiB", cHorizAppMultiB);
+ map.put("HorizAppMultiC", cHorizAppMultiC);
+ map.put("HorizAppMultiD", cHorizAppMultiD);
+ map.put("HorizInterFlatA", cHorizInterFlatA);
+ map.put("HorizInterFlatB", cHorizInterFlatB);
+ map.put("HorizInterFlatC", cHorizInterFlatC);
+ map.put("HorizInterFlatD", cHorizInterFlatD);
+ map.put("HorizInterVerticalA", cHorizInterVerticalA);
+ map.put("HorizInterVerticalB", cHorizInterVerticalB);
+ map.put("HorizInterVerticalC", cHorizInterVerticalC);
+ map.put("HorizInterVerticalD", cHorizInterVerticalD);
+
+ return map;
+ }
+
+ public void setObHorizA(HorizA obHorizA) {
+ this.obHorizA = obHorizA;
+ }
+
+ public HorizA getObHorizA() {
+ return this.obHorizA;
+ }
+
+ public void setObHorizB(HorizB obHorizB) {
+ this.obHorizB = obHorizB;
+ }
+
+ public HorizB getObHorizB() {
+ return this.obHorizB;
+ }
+
+ public void setObHorizC(HorizC obHorizC) {
+ this.obHorizC = obHorizC;
+ }
+
+ public HorizC getObHorizC() {
+ return this.obHorizC;
+ }
+
+ public void setObHorizD(HorizD obHorizD) {
+ this.obHorizD = obHorizD;
+ }
+
+ public HorizD getObHorizD() {
+ return this.obHorizD;
+ }
+
+ public void setObHorizE(HorizE obHorizE) {
+ this.obHorizE = obHorizE;
+ }
+
+ public HorizE getObHorizE() {
+ return this.obHorizE;
+ }
+
+ public void setObHorizF(HorizF obHorizF) {
+ this.obHorizF = obHorizF;
+ }
+
+ public HorizF getObHorizF() {
+ return this.obHorizF;
+ }
+
+ public void setObHorizG(HorizG obHorizG) {
+ this.obHorizG = obHorizG;
+ }
+
+ public HorizG getObHorizG() {
+ return this.obHorizG;
+ }
+
+ public void setObHorizH(HorizH obHorizH) {
+ this.obHorizH = obHorizH;
+ }
+
+ public HorizH getObHorizH() {
+ return this.obHorizH;
+ }
+
+ public void setObHorizI(HorizI obHorizI) {
+ this.obHorizI = obHorizI;
+ }
+
+ public HorizI getObHorizI() {
+ return this.obHorizI;
+ }
+
+ public void setObHorizJ(HorizJ obHorizJ) {
+ this.obHorizJ = obHorizJ;
+ }
+
+ public HorizJ getObHorizJ() {
+ return this.obHorizJ;
+ }
+
+ public void setObHorizK(HorizK obHorizK) {
+ this.obHorizK = obHorizK;
+ }
+
+ public HorizK getObHorizK() {
+ return this.obHorizK;
+ }
+
+ public void setObHorizL(HorizL obHorizL) {
+ this.obHorizL = obHorizL;
+ }
+
+ public HorizL getObHorizL() {
+ return this.obHorizL;
+ }
+
+ public void setObHorizM(HorizM obHorizM) {
+ this.obHorizM = obHorizM;
+ }
+
+ public HorizM getObHorizM() {
+ return this.obHorizM;
+ }
+
+ public void setObHorizN(HorizN obHorizN) {
+ this.obHorizN = obHorizN;
+ }
+
+ public HorizN getObHorizN() {
+ return this.obHorizN;
+ }
+
+ public void setObHorizO(HorizO obHorizO) {
+ this.obHorizO = obHorizO;
+ }
+
+ public HorizO getObHorizO() {
+ return this.obHorizO;
+ }
+
+ public void setObHorizAppSingleA(HorizAppSingleA obHorizAppSingleA) {
+ this.obHorizAppSingleA = obHorizAppSingleA;
+ }
+
+ public HorizAppSingleA getObHorizAppSingleA() {
+ return this.obHorizAppSingleA;
+ }
+
+ public void setObHorizAppSingleB(HorizAppSingleB obHorizAppSingleB) {
+ this.obHorizAppSingleB = obHorizAppSingleB;
+ }
+
+ public HorizAppSingleB getObHorizAppSingleB() {
+ return this.obHorizAppSingleB;
+ }
+
+ public void setObHorizAppSingleC(HorizAppSingleC obHorizAppSingleC) {
+ this.obHorizAppSingleC = obHorizAppSingleC;
+ }
+
+ public HorizAppSingleC getObHorizAppSingleC() {
+ return this.obHorizAppSingleC;
+ }
+
+ public void setObHorizAppSingleD(HorizAppSingleD obHorizAppSingleD) {
+ this.obHorizAppSingleD = obHorizAppSingleD;
+ }
+
+ public HorizAppSingleD getObHorizAppSingleD() {
+ return this.obHorizAppSingleD;
+ }
+
+ public void setObHorizAppMultiA(HorizAppMultiA obHorizAppMultiA) {
+ this.obHorizAppMultiA = obHorizAppMultiA;
+ }
+
+ public HorizAppMultiA getObHorizAppMultiA() {
+ return this.obHorizAppMultiA;
+ }
+
+ public void setObHorizAppMultiB(HorizAppMultiB obHorizAppMultiB) {
+ this.obHorizAppMultiB = obHorizAppMultiB;
+ }
+
+ public HorizAppMultiB getObHorizAppMultiB() {
+ return this.obHorizAppMultiB;
+ }
+
+ public void setObHorizAppMultiC(HorizAppMultiC obHorizAppMultiC) {
+ this.obHorizAppMultiC = obHorizAppMultiC;
+ }
+
+ public HorizAppMultiC getObHorizAppMultiC() {
+ return this.obHorizAppMultiC;
+ }
+
+ public void setObHorizAppMultiD(HorizAppMultiD obHorizAppMultiD) {
+ this.obHorizAppMultiD = obHorizAppMultiD;
+ }
+
+ public HorizAppMultiD getObHorizAppMultiD() {
+ return this.obHorizAppMultiD;
+ }
+
+ public void setObHorizInterFlatA(HorizInterFlatA obHorizInterFlatA) {
+ this.obHorizInterFlatA = obHorizInterFlatA;
+ }
+
+ public HorizInterFlatA getObHorizInterFlatA() {
+ return this.obHorizInterFlatA;
+ }
+
+ public void setObHorizInterFlatB(HorizInterFlatB obHorizInterFlatB) {
+ this.obHorizInterFlatB = obHorizInterFlatB;
+ }
+
+ public HorizInterFlatB getObHorizInterFlatB() {
+ return this.obHorizInterFlatB;
+ }
+
+ public void setObHorizInterFlatC(HorizInterFlatC obHorizInterFlatC) {
+ this.obHorizInterFlatC = obHorizInterFlatC;
+ }
+
+ public HorizInterFlatC getObHorizInterFlatC() {
+ return this.obHorizInterFlatC;
+ }
+
+ public void setObHorizInterFlatD(HorizInterFlatD obHorizInterFlatD) {
+ this.obHorizInterFlatD = obHorizInterFlatD;
+ }
+
+ public HorizInterFlatD getObHorizInterFlatD() {
+ return this.obHorizInterFlatD;
+ }
+
+ public void setObHorizInterVerticalA
+ (HorizInterVerticalA obHorizInterVerticalA) {
+ this.obHorizInterVerticalA = obHorizInterVerticalA;
+ }
+
+ public HorizInterVerticalA getObHorizInterVerticalA() {
+ return this.obHorizInterVerticalA;
+ }
+
+ public void setObHorizInterVerticalB
+ (HorizInterVerticalB obHorizInterVerticalB) {
+ this.obHorizInterVerticalB = obHorizInterVerticalB;
+ }
+
+ public HorizInterVerticalB getObHorizInterVerticalB() {
+ return this.obHorizInterVerticalB;
+ }
+
+ public void setObHorizInterVerticalC
+ (HorizInterVerticalC obHorizInterVerticalC) {
+ this.obHorizInterVerticalC = obHorizInterVerticalC;
+ }
+
+ public HorizInterVerticalC getObHorizInterVerticalC() {
+ return this.obHorizInterVerticalC;
+ }
+
+ public void setObHorizInterVerticalD
+ (HorizInterVerticalD obHorizInterVerticalD) {
+ this.obHorizInterVerticalD = obHorizInterVerticalD;
+ }
+
+ public HorizInterVerticalD getObHorizInterVerticalD() {
+ return this.obHorizInterVerticalD;
+ }
+
+ public HashSet getCHorizInterVerticalB() {
+ return this.cHorizInterVerticalB;
+ }
+
+ public void setCHorizInterVerticalB(HashSet cHorizInterVerticalB) {
+ this.cHorizInterVerticalB = cHorizInterVerticalB;
+ }
+}
+
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InverseKeyMapPC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InverseKeyMapPC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InverseKeyMapPC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InverseKeyMapPC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,44 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+public class InverseKeyMapPC
+ implements MappedByMapPC {
+
+ private String name;
+ private Map helpers = new HashMap();
+
+ public Map getHelpers() {
+ return this.helpers;
+ }
+
+ public void setHelpers(Map helpers) {
+ this.helpers = helpers;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertA.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertA.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertA.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertA.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,80 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+
+import java.io.Serializable;
+import java.util.*;
+import javax.persistence.*;
+
+/**
+ * Used to test invert one-to-ones and stuff
+ *
+ * @author skim
+ */
+@SuppressWarnings("serial")
+@Entity
+public class InvertA implements Serializable
+{
+ @Id
+ private int id;
+
+ @Column(length=35)
+ String test;
+
+ @OneToOne(cascade={CascadeType.PERSIST, CascadeType.REMOVE})
+ InvertB invertB;
+
+ public InvertA()
+ {
+ }
+
+ public InvertA(int id)
+ {
+ this.id = id;
+ }
+
+ public InvertB getInvertB ()
+ {
+ return invertB;
+ }
+
+ public void setInvertB (InvertB b)
+ {
+ invertB = b;
+ }
+
+ public void setTest (String s)
+ {
+ test = s;
+ }
+
+ public String getTest ()
+ {
+ return test;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertB.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertB.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertB.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/InvertB.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,82 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.io.Serializable;
+import java.util.*;
+
+import javax.persistence.*;
+
+
+/**
+ * Used to test invert one to ones and stuff.
+ *
+ * @author skim
+ */
+@SuppressWarnings("serial")
+@Entity
+public class InvertB implements Serializable
+{
+
+ @Id
+ private int id;
+
+ @OneToOne(cascade={CascadeType.PERSIST, CascadeType.REMOVE})
+ public InvertA invertA;
+
+ @Column(length=35)
+ public String test;
+
+ public InvertB()
+ {
+ }
+
+ public InvertB(int id)
+ {
+ this.id = id;
+ }
+
+ public InvertA getInvertA ()
+ {
+ return invertA;
+ }
+
+ public void setInvertA (InvertA a)
+ {
+ invertA = a;
+ }
+
+ public String getTest ()
+ {
+ return test;
+ }
+
+ public void setTest (String s)
+ {
+ test = s;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBase.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBase.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBase.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBase.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,43 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+public class JoinSubclassBase
+ implements Comparable {
+
+ private int baseField;
+
+ public int getBaseField() {
+ return this.baseField;
+ }
+
+ public void setBaseField(int baseField) {
+ this.baseField = baseField;
+ }
+
+ public int compareTo(Object other) {
+ if (other == this)
+ return 0;
+ if (other == null)
+ return 1;
+ return baseField - ((JoinSubclassBase) other).baseField;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubFlat.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubFlat.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubFlat.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubFlat.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,33 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+public class JoinSubclassBaseSubFlat
+ extends JoinSubclassBaseSubVert {
+
+ private int baseSubFlatField;
+
+ public int getBaseSubFlatField() {
+ return this.baseSubFlatField;
+ }
+
+ public void setBaseSubFlatField(int baseSubFlatField) {
+ this.baseSubFlatField = baseSubFlatField;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubVert.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubVert.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubVert.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinSubclassBaseSubVert.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,33 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+public class JoinSubclassBaseSubVert
+ extends JoinSubclassBase {
+
+ private int baseSubVertField;
+
+ public int getBaseSubVertField() {
+ return this.baseSubVertField;
+ }
+
+ public void setBaseSubVertField(int baseSubVertField) {
+ this.baseSubVertField = baseSubVertField;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinTableMapPC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinTableMapPC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinTableMapPC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/JoinTableMapPC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,44 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+public class JoinTableMapPC
+ implements MappedByMapPC {
+
+ private String name;
+ private Map helpers = new HashMap();
+
+ public Map getHelpers() {
+ return this.helpers;
+ }
+
+ public void setHelpers(Map helpers) {
+ this.helpers = helpers;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSCompoundPC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSCompoundPC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSCompoundPC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSCompoundPC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,112 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+/**
+ * <p>Persistent type with a compound primary key and LRS fields.</p>
+ *
+ * @author Abe White
+ */
+public class LRSCompoundPC
+ implements LRSPCIntf {
+
+ private static int idGen = 0;
+
+ private int id1;
+ private int id2;
+
+ private String stringField;
+ private Set stringSet = new HashSet();
+ private Set relSet = new HashSet();
+ private Collection stringCollection = new ArrayList();
+ private Collection relCollection = new ArrayList();
+ private Map stringMap = new HashMap();
+ private Map relMap = new HashMap();
+
+ private LRSCompoundPC() {
+ }
+
+ public LRSCompoundPC(String str) {
+ id1 = idGen++;
+ id2 = idGen++;
+ stringField = str;
+ }
+
+ public LRSPCIntf newInstance(String stringField) {
+ return new LRSCompoundPC(stringField);
+ }
+
+ public Set getStringSet() {
+ return this.stringSet;
+ }
+
+ public void setStringSet(Set stringSet) {
+ this.stringSet = stringSet;
+ }
+
+ public Set getRelSet() {
+ return this.relSet;
+ }
+
+ public void setRelSet(Set relSet) {
+ this.relSet = relSet;
+ }
+
+ public Collection getStringCollection() {
+ return this.stringCollection;
+ }
+
+ public void setStringCollection(Collection stringCollection) {
+ this.stringCollection = stringCollection;
+ }
+
+ public Collection getRelCollection() {
+ return this.relCollection;
+ }
+
+ public void setRelCollection(Collection relCollection) {
+ this.relCollection = relCollection;
+ }
+
+ public Map getStringMap() {
+ return this.stringMap;
+ }
+
+ public void setStringMap(Map stringMap) {
+ this.stringMap = stringMap;
+ }
+
+ public Map getRelMap() {
+ return this.relMap;
+ }
+
+ public void setRelMap(Map relMap) {
+ this.relMap = relMap;
+ }
+
+ public String getStringField() {
+ return this.stringField;
+ }
+
+ public int compareTo(Object other) {
+ return stringField.compareTo(((LRSCompoundPC) other).stringField);
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,105 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+/**
+ * <p>Persistent type with LRS fields.</p>
+ *
+ * @author Abe White
+ */
+public class LRSPC
+ implements LRSPCIntf {
+
+ private String stringField;
+ private Set stringSet = new HashSet();
+ private Set relSet = new HashSet();
+ private Collection stringCollection = new ArrayList();
+ private Collection relCollection = new ArrayList();
+ private Map stringMap = new HashMap();
+ private Map relMap = new HashMap();
+
+ private LRSPC() {
+ }
+
+ public LRSPC(String str) {
+ stringField = str;
+ }
+
+ public LRSPCIntf newInstance(String stringField) {
+ return new LRSPC(stringField);
+ }
+
+ public Set getStringSet() {
+ return this.stringSet;
+ }
+
+ public void setStringSet(Set stringSet) {
+ this.stringSet = stringSet;
+ }
+
+ public Set getRelSet() {
+ return this.relSet;
+ }
+
+ public void setRelSet(Set relSet) {
+ this.relSet = relSet;
+ }
+
+ public Collection getStringCollection() {
+ return this.stringCollection;
+ }
+
+ public void setStringCollection(Collection stringCollection) {
+ this.stringCollection = stringCollection;
+ }
+
+ public Collection getRelCollection() {
+ return this.relCollection;
+ }
+
+ public void setRelCollection(Collection relCollection) {
+ this.relCollection = relCollection;
+ }
+
+ public Map getStringMap() {
+ return this.stringMap;
+ }
+
+ public void setStringMap(Map stringMap) {
+ this.stringMap = stringMap;
+ }
+
+ public Map getRelMap() {
+ return this.relMap;
+ }
+
+ public void setRelMap(Map relMap) {
+ this.relMap = relMap;
+ }
+
+ public String getStringField() {
+ return this.stringField;
+ }
+
+ public int compareTo(Object other) {
+ return stringField.compareTo(((LRSPC) other).stringField);
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPCIntf.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPCIntf.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPCIntf.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LRSPCIntf.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,58 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+/**
+ * <p>Common interface for persistent types used in LRS testing.</p>
+ *
+ * @author Abe White
+ */
+public interface LRSPCIntf
+ extends Comparable {
+
+ public Set getStringSet();
+
+ public void setStringSet(Set stringSet);
+
+ public Set getRelSet();
+
+ public void setRelSet(Set relSet);
+
+ public Collection getStringCollection();
+
+ public void setStringCollection(Collection stringCollection);
+
+ public Collection getRelCollection();
+
+ public void setRelCollection(Collection relCollection);
+
+ public Map getStringMap();
+
+ public void setStringMap(Map stringMap);
+
+ public Map getRelMap();
+
+ public void setRelMap(Map relMap);
+
+ public String getStringField();
+
+ public LRSPCIntf newInstance(String stringField);
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LocatorTestObject.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LocatorTestObject.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LocatorTestObject.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LocatorTestObject.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,44 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+/**
+ * Used in testing; should be enhanced.
+ */
+public class LocatorTestObject {
+
+ private byte[] bytes;
+ private String clobString;
+
+ public void setBytes(byte[] bytes) {
+ this.bytes = bytes;
+ }
+
+ public byte[] getBytes() {
+ return bytes;
+ }
+
+ public void setClobString(String val) {
+ clobString = val;
+ }
+
+ public String getClobString() {
+ return clobString;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LockGroupSubclass.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LockGroupSubclass.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LockGroupSubclass.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/LockGroupSubclass.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,42 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+public class LockGroupSubclass
+ extends HorizB {
+
+ private String nonDefaultLockGroupField;
+ private String defaultLockGroupField;
+
+ public String getDefaultLockGroupField() {
+ return defaultLockGroupField;
+ }
+
+ public void setDefaultLockGroupField(String defaultLockGroupField) {
+ this.defaultLockGroupField = defaultLockGroupField;
+ }
+
+ public String getNonDefaultLockGroupField() {
+ return nonDefaultLockGroupField;
+ }
+
+ public void setNonDefaultLockGroupField(String nonDefaultLockGroupField) {
+ this.nonDefaultLockGroupField = nonDefaultLockGroupField;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappedByMapPC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappedByMapPC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappedByMapPC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappedByMapPC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+public interface MappedByMapPC {
+
+ /**
+ * Map of string to {@link HelperPC}.
+ */
+ public Map getHelpers();
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest1.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest1.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest1.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest1.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,253 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+
+import java.util.*;
+
+
+/**
+ * <p>Persistent type used for testing.</p>
+ *
+ * @author Abe White
+ */
+public class MappingTest1
+{
+ private int value = 0;
+ private int otherTableValue = 0;
+ private Object blob = null;
+ private MappingTest2 oneOne = null;
+ private MappingTest1 selfOneOne = null;
+ private MappingTest2 otherTableOneOne = null;
+ private MappingTest2 inverseOwnerOneOne = null;
+ private MappingTest2 inverseOneOne = null;
+ private Set collection = new HashSet ();
+ private Set inverseOwnerOneMany = new HashSet ();
+ private Set oneMany = new HashSet ();
+ private List manyMany = new LinkedList ();
+ private Set inverseOwnerManyMany = new HashSet ();
+ private Map map = new HashMap ();
+ private Map nManyMap = new HashMap ();
+ private Map manyManyMap = new HashMap ();
+ private int transactionalValue = 0;
+
+
+ public int getValue ()
+ {
+ return this.value;
+ }
+
+
+ public void setValue (int value)
+ {
+ this.value = value;
+ }
+
+
+ public int getOtherTableValue ()
+ {
+ return this.otherTableValue;
+ }
+
+
+ public void setOtherTableValue (int otherTableValue)
+ {
+ this.otherTableValue = otherTableValue;
+ }
+
+
+ public Object getBlob ()
+ {
+ return this.blob;
+ }
+
+
+ public void setBlob (Object blob)
+ {
+ this.blob = blob;
+ }
+
+
+ public MappingTest2 getOneOne ()
+ {
+ return this.oneOne;
+ }
+
+
+ public void setOneOne (MappingTest2 oneOne)
+ {
+ this.oneOne = oneOne;
+ }
+
+
+ public MappingTest1 getSelfOneOne ()
+ {
+ return this.selfOneOne;
+ }
+
+
+ public void setSelfOneOne (MappingTest1 selfOneOne)
+ {
+ this.selfOneOne = selfOneOne;
+ }
+
+
+ public MappingTest2 getOtherTableOneOne ()
+ {
+ return this.otherTableOneOne;
+ }
+
+
+ public void setOtherTableOneOne (MappingTest2 otherTableOneOne)
+ {
+ this.otherTableOneOne = otherTableOneOne;
+ }
+
+
+ public MappingTest2 getInverseOwnerOneOne ()
+ {
+ return this.inverseOwnerOneOne;
+ }
+
+
+ public void setInverseOwnerOneOne (MappingTest2 inverseOwnerOneOne)
+ {
+ this.inverseOwnerOneOne = inverseOwnerOneOne;
+ }
+
+
+ public MappingTest2 getInverseOneOne ()
+ {
+ return this.inverseOneOne;
+ }
+
+
+ public void setInverseOneOne (MappingTest2 inverseOneOne)
+ {
+ this.inverseOneOne = inverseOneOne;
+ }
+
+
+ public Set getCollection ()
+ {
+ return this.collection;
+ }
+
+
+ public void setCollection (Set collection)
+ {
+ this.collection = collection;
+ }
+
+
+ public Set getInverseOwnerOneMany ()
+ {
+ return this.inverseOwnerOneMany;
+ }
+
+
+ public void setInverseOwnerOneMany (Set inverseOwnerOneMany)
+ {
+ this.inverseOwnerOneMany = inverseOwnerOneMany;
+ }
+
+
+ public Set getOneMany ()
+ {
+ return this.oneMany;
+ }
+
+
+ public void setOneMany (Set oneMany)
+ {
+ this.oneMany = oneMany;
+ }
+
+
+ public List getManyMany ()
+ {
+ return this.manyMany;
+ }
+
+
+ public void setManyMany (List manyMany)
+ {
+ this.manyMany = manyMany;
+ }
+
+
+ public Set getInverseOwnerManyMany ()
+ {
+ return this.inverseOwnerManyMany;
+ }
+
+
+ public void setInverseOwnerManyMany (Set inverseOwnerManyMany)
+ {
+ this.inverseOwnerManyMany = inverseOwnerManyMany;
+ }
+
+
+ public Map getMap ()
+ {
+ return this.map;
+ }
+
+
+ public void setMap (Map map)
+ {
+ this.map = map;
+ }
+
+
+ public Map getNManyMap ()
+ {
+ return this.nManyMap;
+ }
+
+
+ public void setNManyMap (Map nManyMap)
+ {
+ this.nManyMap = nManyMap;
+ }
+
+
+ public Map getManyManyMap ()
+ {
+ return this.manyManyMap;
+ }
+
+
+ public void setManyManyMap (Map manyManyMap)
+ {
+ this.manyManyMap = manyManyMap;
+ }
+
+
+ public int getTransactionalValue ()
+ {
+ return this.transactionalValue;
+ }
+
+
+ public void setTransactionalValue (int transactionalValue)
+ {
+ this.transactionalValue = transactionalValue;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,98 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+
+import java.util.*;
+import javax.persistence.*;
+
+/**
+ * <p>Persistent class used in testing.</p>
+ *
+ * @author Abe White
+ */
+
+public class MappingTest2
+{
+ private int pk1 = 0;
+ private int pk2 = 0;
+ private MappingTest1 oneOneOwner = null;
+ private MappingTest1 oneManyOwner = null;
+ private Set manyManyOwner = new HashSet ();
+
+
+ public int getPk1 ()
+ {
+ return this.pk1;
+ }
+
+
+ public void setPk1 (int pk1)
+ {
+ this.pk1 = pk1;
+ }
+
+
+ public int getPk2 ()
+ {
+ return this.pk2;
+ }
+
+
+ public void setPk2 (int pk2)
+ {
+ this.pk2 = pk2;
+ }
+
+
+ public MappingTest1 getOneOneOwner ()
+ {
+ return this.oneOneOwner;
+ }
+
+
+ public void setOneOneOwner (MappingTest1 oneOneOwner)
+ {
+ this.oneOneOwner = oneOneOwner;
+ }
+
+
+ public MappingTest1 getOneManyOwner ()
+ {
+ return this.oneManyOwner;
+ }
+
+
+ public void setOneManyOwner (MappingTest1 oneManyOwner)
+ {
+ this.oneManyOwner = oneManyOwner;
+ }
+
+
+ public Set getManyManyOwner ()
+ {
+ return this.manyManyOwner;
+ }
+
+
+ public void setManyManyOwner (Set manyManyOwner)
+ {
+ this.manyManyOwner = manyManyOwner;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2ID.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2ID.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2ID.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest2ID.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,99 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+
+import java.io.*;
+import java.math.*;
+import java.text.*;
+import java.util.*;
+
+
+/**
+ * Application object ID class for MappingTest2.
+ * Auto-generated by kodo.enhance.ApplicationIdTool.
+ */
+@SuppressWarnings("serial")
+public class MappingTest2ID implements Serializable
+{
+ // each pk field in MappingTest2
+ // must be listed as a public field here
+ public int pk1;
+ public int pk2;
+
+
+ /**
+ * Default constructor.
+ */
+ public MappingTest2ID ()
+ {
+ }
+
+
+ /**
+ * String constructor.
+ */
+ public MappingTest2ID (String str)
+ {
+ StringTokenizer toke = new StringTokenizer (str, "::");
+
+ str = toke.nextToken ();
+ this.pk1 = Integer.parseInt (str);
+ str = toke.nextToken ();
+ this.pk2 = Integer.parseInt (str);
+ }
+
+
+ /**
+ * Implementation of equals method.
+ */
+ public boolean equals (Object ob)
+ {
+ if (this == ob)
+ return true;
+ if (!(ob instanceof MappingTest2ID))
+ return false;
+
+ MappingTest2ID other = (MappingTest2ID) ob;
+ return (this.pk1 == other.pk1)
+ && (this.pk2 == other.pk2);
+ }
+
+
+ /**
+ * Implementation of hashCode method that supports the
+ * equals-hashCode contract.
+ */
+ public int hashCode ()
+ {
+ return (int) this.pk1
+ + (int) this.pk2;
+ }
+
+
+ /**
+ * Implementation of toString that outputs this object id's
+ * primary key values.
+ */
+ public String toString ()
+ {
+ return String.valueOf (this.pk1)
+ + "::" + String.valueOf (this.pk2);
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest3.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest3.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest3.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest3.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,43 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+
+/**
+ * <p>Persistent type used in testing.</p>
+ *
+ * @author Abe White
+ */
+public class MappingTest3
+ extends MappingTest1
+{
+ private int verticalValue = 0;
+
+
+ public int getVerticalValue ()
+ {
+ return this.verticalValue;
+ }
+
+
+ public void setVerticalValue (int verticalValue)
+ {
+ this.verticalValue = verticalValue;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest4.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest4.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest4.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest4.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,43 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+
+/**
+ * <p>Persistent type used in testing.</p>
+ *
+ * @author Abe White
+ */
+public class MappingTest4
+ extends MappingTest3
+{
+ private int flatValue = 0;
+
+
+ public int getFlatValue ()
+ {
+ return this.flatValue;
+ }
+
+
+ public void setFlatValue (int flatValue)
+ {
+ this.flatValue = flatValue;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest5.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest5.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest5.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MappingTest5.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,47 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+/**
+ * <p>Persistent type used in testing.</p>
+ *
+ * @author Abe White
+ */
+public class MappingTest5
+ extends MappingTest2 {
+
+ private int vertValue = 0;
+ private MappingTest5 vertRel = null;
+
+ public int getVertValue() {
+ return this.vertValue;
+ }
+
+ public void setVertValue(int vertValue) {
+ this.vertValue = vertValue;
+ }
+
+ public MappingTest5 getVertRel() {
+ return this.vertRel;
+ }
+
+ public void setVertRel(MappingTest5 vertRel) {
+ this.vertRel = vertRel;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiA.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiA.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiA.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiA.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,72 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+public class MultiA {
+
+ private String string0;
+ private String string1;
+
+ private int aint0;
+ private int aint1;
+
+ private Set multiCs = new HashSet();
+
+ public void setString0(String val) {
+ string0 = val;
+ }
+
+ public String getString0() {
+ return string0;
+ }
+
+ public void setInt0(int val) {
+ aint0 = val;
+ }
+
+ public void setString1(String val) {
+ string1 = val;
+ }
+
+ public String getString1() {
+ return string1;
+ }
+
+ public int getInt0() {
+ return aint0;
+ }
+
+ public void setInt1(int val) {
+ aint1 = val;
+ }
+
+ public int getInt1() {
+ return aint1;
+ }
+
+ public void setMultiCs(Set val) {
+ multiCs = val;
+ }
+
+ public Set getMultiCs() {
+ return multiCs;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiB.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiB.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiB.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiB.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,34 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+public class MultiB
+ extends MultiA {
+
+ private String bString;
+ private int bInt;
+
+ public void setBString(String val) {
+ bString = val;
+ }
+
+ public String getBString() {
+ return bString;
+ }
+}
Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiC.java?rev=627979&view=auto
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiC.java (added)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiC.java Fri Feb 15 01:19:55 2008
@@ -0,0 +1,48 @@
+/*
+ * 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.persistence.jdbc.common.apps;
+
+import java.util.*;
+
+public class MultiC
+ extends MultiB {
+
+ private String cString0;
+ private String cString1;
+
+ private int cInt;
+
+ private Set multiAs = new HashSet();
+
+ public void setCString0(String val) {
+ cString0 = val;
+ }
+
+ public String getCString0() {
+ return cString0;
+ }
+
+ public void setMultiAs(Set val) {
+ multiAs = val;
+ }
+
+ public Set getMultiAs() {
+ return multiAs;
+ }
+}