openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jrba...@apache.org
Subject svn commit: r900955 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/p...
Date Tue, 19 Jan 2010 21:00:27 GMT
Author: jrbauer
Date: Tue Jan 19 21:00:25 2010
New Revision: 900955

URL: http://svn.apache.org/viewvc?rev=900955&view=rev
Log:
OPENJPA-1115 Fixed many naming collisions in delimited id tests.  Corrected bug in schema group that broke fully qualified sequence names.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGroup.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimIdSeqGen.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityH.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI2.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-joins-orm.xml
    openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-seq-gen-xml-orm.xml

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGroup.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGroup.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGroup.java (original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGroup.java Tue Jan 19 21:00:25 2010
@@ -306,7 +306,7 @@
      * given sequence that may have come from another schema group.
      */
     public Sequence findSequence(Sequence seq) {
-        return findSequence(QualifiedDBIdentifier.getPath(seq.getIdentifier()));
+        return findSequence(seq.getQualifiedPath());
     }
 
     /**

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java Tue Jan 19 21:00:25 2010
@@ -18,7 +18,6 @@
  */
 package org.apache.openjpa.persistence.delimited.identifiers;
 
-import javax.persistence.Column;
 import javax.persistence.ColumnResult;
 import javax.persistence.DiscriminatorColumn;
 import javax.persistence.Entity;

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java Tue Jan 19 21:00:25 2010
@@ -71,7 +71,7 @@
     private Map<String, String> collectionMap = new HashMap<String, String>();
     
     @ElementCollection
-    @MapKeyColumn(name="map key", columnDefinition="varchar(20)", table="map key table")
+    @MapKeyColumn(name="map key", columnDefinition="varchar(20)", table="m ktbl")
     private Map<String, String> delimCollectionMap = 
         new HashMap<String, String>();
     

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java Tue Jan 19 21:00:25 2010
@@ -58,12 +58,12 @@
     private EntityD2 entityD2;
     
     @ManyToMany
-    @JoinTable(name="\"map join table\"", schema="\"delim id\"")
+    @JoinTable(name="\"m jtbl\"", schema="\"delim id\"")
     @MapKeyJoinColumn(name="map_ed3", referencedColumnName="\"entityD3 id\"")
     Map<EntityD3,EntityD4> map = new HashMap<EntityD3,EntityD4>();
     
     @ManyToMany
-    @JoinTable(name="\"map2 join table\"", schema="\"delim id\"")
+    @JoinTable(name="\"m2 jtbl\"", schema="\"delim id\"")
     @MapKeyJoinColumn(name="\"map ed4\"", 
         referencedColumnName="\"entityD4 id\"")
     Map<EntityD4,EntityD3> map2 = new HashMap<EntityD4,EntityD3>();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java Tue Jan 19 21:00:25 2010
@@ -63,7 +63,7 @@
     @ElementCollection
     // CollectionTable with default name generation
     @CollectionTable
-    private Set<String> collectionSet = new HashSet<String>();
+    private Set<String> cSet = new HashSet<String>();
     
     @ElementCollection
     @CollectionTable(name="\"collectionDelimSet\"", schema="\"delim id\"")
@@ -71,15 +71,15 @@
     
     @ElementCollection
     // MapKeyColumn with default name generation
-    @MapKeyColumn
-    private Map<String, String> collectionMap = new HashMap<String, String>();
+    @MapKeyColumn    
+    private Map<String, String> cMap = new HashMap<String, String>();
     
     @ElementCollection
     // Note: Delimited column definition is not supported on some DBs, so
     // it is not delimited here
     // TODO: create a separate entity and conditionally run the test on a supported DB
-    @MapKeyColumn(name="\"mapKey\"", columnDefinition="varchar(20)", table="\"delim collection map\"")
-    private Map<String, String> delimCollectionMap = 
+    @MapKeyColumn(name="\"mapKey\"", columnDefinition="varchar(20)", table="\"d colmap\"")
+    private Map<String, String> dcMap = 
         new HashMap<String, String>();
     
     public EntityF(String name) {
@@ -143,18 +143,18 @@
      * @return the collectionSet
      */
     public Set<String> getCollectionSet() {
-        return collectionSet;
+        return cSet;
     }
 
     /**
      * @param collectionSet the collectionSet to set
      */
     public void setCollectionSet(Set<String> collectionSet) {
-        this.collectionSet = collectionSet;
+        this.cSet = collectionSet;
     }
     
     public void addCollectionSet(String item) {
-        collectionSet.add(item);
+        cSet.add(item);
     }
 
     /**
@@ -179,35 +179,35 @@
      * @return the collectionMap
      */
     public Map<String, String> getCollectionMap() {
-        return collectionMap;
+        return cMap;
     }
 
     /**
      * @param collectionMap the collectionMap to set
      */
     public void setCollectionMap(Map<String, String> collectionMap) {
-        this.collectionMap = collectionMap;
+        this.cMap = collectionMap;
     }
 
     public void addCollectionMap(String key, String value) {
-        collectionMap.put(key, value);
+        cMap.put(key, value);
     }
 
     /**
      * @return the delimCollectionMap
      */
     public Map<String, String> getDelimCollectionMap() {
-        return delimCollectionMap;
+        return dcMap;
     }
 
     /**
      * @param delimCollectionMap the delimCollectionMap to set
      */
     public void setDelimCollectionMap(Map<String, String> delimCollectionMap) {
-        this.delimCollectionMap = delimCollectionMap;
+        this.dcMap = delimCollectionMap;
     }
     
     public void addDelimCollectionMap(String key, String value) {
-        delimCollectionMap.put(key, value);
+        dcMap.put(key, value);
     }
 }

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java Tue Jan 19 21:00:25 2010
@@ -65,7 +65,7 @@
     @ManyToMany
     @JoinTable(name="map4 join table", schema="delim id2")
     @MapKeyJoinColumn(name="map ei4", 
-        referencedColumnName="entityI4 id", table="map key join column")
+        referencedColumnName="entityI4 id", table="mk j col")
     Map<EntityI4,EntityI3> map2 = new HashMap<EntityI4,EntityI3>();
 
     public EntityH() {}

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java Tue Jan 19 21:00:25 2010
@@ -52,7 +52,8 @@
             org.apache.openjpa.persistence.delimited.identifiers.Chevrolet.class,
             org.apache.openjpa.persistence.delimited.identifiers.Car2.class,
             org.apache.openjpa.persistence.delimited.identifiers.Pontiac2.class,
-            org.apache.openjpa.persistence.delimited.identifiers.Chevrolet2.class);
+            org.apache.openjpa.persistence.delimited.identifiers.Chevrolet2.class,
+            DROP_TABLES);
         assertNotNull(emf);
         
         em = emf.createEntityManager();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java Tue Jan 19 21:00:25 2010
@@ -22,7 +22,6 @@
 
 import javax.persistence.Query;
 
-import org.apache.openjpa.jdbc.conf.JDBCConfiguration;
 import org.apache.openjpa.persistence.OpenJPAEntityManager;
 import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
 import org.apache.openjpa.persistence.test.SQLListenerTestCase;

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java Tue Jan 19 21:00:25 2010
@@ -53,8 +53,8 @@
             org.apache.openjpa.persistence.delimited.identifiers.Cat.class,
             org.apache.openjpa.persistence.delimited.identifiers.Animal2.class,
             org.apache.openjpa.persistence.delimited.identifiers.Dog2.class,
-            org.apache.openjpa.persistence.delimited.identifiers.Cat2.class
-            );
+            org.apache.openjpa.persistence.delimited.identifiers.Cat2.class,
+            DROP_TABLES);
         assertNotNull(emf);
         
         em = emf.createEntityManager();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java Tue Jan 19 21:00:25 2010
@@ -4,9 +4,7 @@
 
 import javax.persistence.Query;
 
-import org.apache.openjpa.jdbc.conf.JDBCConfiguration;
 import org.apache.openjpa.jdbc.sql.DB2Dictionary;
-import org.apache.openjpa.jdbc.sql.DBDictionary;
 import org.apache.openjpa.jdbc.sql.DerbyDictionary;
 import org.apache.openjpa.persistence.OpenJPAEntityManager;
 /*

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java Tue Jan 19 21:00:25 2010
@@ -36,36 +36,36 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"entity c\"")
-@SecondaryTable(name="\"sec join table\"",
-    pkJoinColumns=@PrimaryKeyJoinColumn(name="\"entity c\"",
-        referencedColumnName="\"c id\""))
+@Table(name="\"nsentity c\"")
+@SecondaryTable(name="\"nssec join table\"",
+    pkJoinColumns=@PrimaryKeyJoinColumn(name="\"nsentity c\"",
+        referencedColumnName="\"nsc id\""))
 public class EntityC {
     @Id
-    @Column(name="\"c id\"")
+    @Column(name="\"nsc id\"")
     private int id;
     private String name;
     
-    @Column(table="\"sec join table\"")
+    @Column(table="\"nssec join table\"")
     private String secName;
     
     @ManyToMany
-    @JoinTable(name="\"c d\"")
+    @JoinTable(name="\"nsc d\"")
     private Collection<EntityD> entityDs = new HashSet<EntityD>();
     
     @OneToOne
-    @JoinColumn(name="\"entd2 id\"", referencedColumnName="\"entityD2 id\"")
+    @JoinColumn(name="\"nsentd2 id\"", referencedColumnName="\"nsentityD2 id\"")
     private EntityD2 entityD2;
     
     @ManyToMany
-    @JoinTable(name="\"map join table\"")
-    @MapKeyJoinColumn(name="map_ed3", referencedColumnName="\"entityD3 id\"")
+    @JoinTable(name="\"nsm ndjtab\"")
+    @MapKeyJoinColumn(name="nsmap_ed3", referencedColumnName="\"nsentityD3 id\"")
     Map<EntityD3,EntityD4> map = new HashMap<EntityD3,EntityD4>();
     
     @ManyToMany
-    @JoinTable(name="\"map2 join table\"")
-    @MapKeyJoinColumn(name="\"map ed4\"", 
-        referencedColumnName="\"entityD4 id\"")
+    @JoinTable(name="\"nsm2 ndjtbl\"")
+    @MapKeyJoinColumn(name="\"nsmap ed4\"", 
+        referencedColumnName="\"nsentityD4 id\"")
     Map<EntityD4,EntityD3> map2 = new HashMap<EntityD4,EntityD3>();
     
     public EntityC() {}

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java Tue Jan 19 21:00:25 2010
@@ -27,7 +27,7 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"entity d\"")
+@Table(name="\"nsentity d\"")
 public class EntityD {
     @Id
     private int id;

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java Tue Jan 19 21:00:25 2010
@@ -26,10 +26,10 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"entity d2\"")
+@Table(name="\"nsentity d2\"")
 public class EntityD2 {
     @Id
-    @Column(name="\"entityD2 id\"")
+    @Column(name="\"nsentityD2 id\"")
     private int id;
     private String name;
     

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java Tue Jan 19 21:00:25 2010
@@ -24,10 +24,10 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"entity d3\"")
+@Table(name="\"nsentity d3\"")
 public class EntityD3 {
     @Id
-    @Column(name="\"entityD3 id\"")
+    @Column(name="\"nsentityD3 id\"")
     int id;
     String name;
     

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java Tue Jan 19 21:00:25 2010
@@ -24,10 +24,10 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"entity d4\"")
+@Table(name="\"nsentity d4\"")
 public class EntityD4 {
     @Id
-    @Column(name="\"entityD4 id\"")
+    @Column(name="\"nsentityD4 id\"")
     int id;
     String name;
     

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java Tue Jan 19 21:00:25 2010
@@ -27,7 +27,7 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"primary entityE\"")
+@Table(name="\"nsprimary entityE\"")
 public class EntityE {
     @Id
     @SequenceGenerator(name="entityE_seq_gen_name", 
@@ -35,7 +35,7 @@
     @GeneratedValue(strategy=GenerationType.SEQUENCE, 
         generator="entityE_seq_gen_name")
     private int id;
-    @Column(name="e_name")
+    @Column(name="nse_name")
     private String name;
     
     public EntityE(String name) {

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java Tue Jan 19 21:00:25 2010
@@ -37,47 +37,47 @@
 import javax.persistence.UniqueConstraint;
 
 @Entity
-@Table(name="\"primary entityF\"",
+@Table(name="\"nsprimary entityF\"",
     uniqueConstraints=
-        @UniqueConstraint(columnNames={"\"f name\"", "f_nonDelimName"}))
-@SecondaryTable(name="\"secondary entityF\"",
+        @UniqueConstraint(columnNames={"\"nsf name\"", "nsf_nonDelimName"}))
+@SecondaryTable(name="\"nssecondary entityF\"",
     uniqueConstraints=
-        @UniqueConstraint(name="\"sec_unq\"", 
-            columnNames={"\"secondary name\""}))         
+        @UniqueConstraint(name="\"nssec_unq\"", 
+            columnNames={"\"nssecondary name\""}))         
 public class EntityF {
-    @TableGenerator(name = "f_id_gen", table = "\"f_id_gen\"", 
-        pkColumnName = "\"gen_pk\"", valueColumnName = "\"gen_value\"")
+    @TableGenerator(name = "f_id_gen", table = "\"nsf_id_gen\"", 
+        pkColumnName = "\"nsgen_pk\"", valueColumnName = "\"nsgen_value\"")
     @GeneratedValue(strategy = GenerationType.TABLE, generator = "f_id_gen")
     @Id
     private int id;
     // Note: Delimited columnDefinition is not supported on some DBs
     // TODO: copy into a separate entity and conditionally run a different test
-    @Column(name="\"f name\"", columnDefinition="varchar(15)")
+    @Column(name="\"nsf name\"", columnDefinition="varchar(15)")
     private String name;
-    @Column(name="f_nonDelimName")
+    @Column(name="nsf_nonDelimName")
     private String nonDelimName;
-    @Column(name="\"secondary name\"", table="\"secondary entityF\"")
+    @Column(name="\"nssecondary name\"", table="\"nssecondary entityF\"")
     private String secName;
     
     @ElementCollection
     // CollectionTable with default name generation
     @CollectionTable
-    private Set<String> collectionSet = new HashSet<String>();
+    private Set<String> nscs = new HashSet<String>();
     
     @ElementCollection
-    @CollectionTable(name="\"collectionDelimSet\"")
-    private Set<String> collectionDelimSet = new HashSet<String>();
+    @CollectionTable(name="\"nscDelSet\"")
+    private Set<String> nscds = new HashSet<String>();
     
     @ElementCollection
     // MapKeyColumn with default name generation
     @MapKeyColumn
-    private Map<String, String> collectionMap = new HashMap<String, String>();
+    private Map<String, String> nscollMap = new HashMap<String, String>();
     
     @ElementCollection
     // Note: Delimited column definition is not supported on some DBs, so
     // it is not delimited here
     // TODO: create a separate entity and conditionally run the test on a supported DB
-    @MapKeyColumn(name="\"mapKey\"", columnDefinition="varchar(20)", table="\"delim collection map\"")
+    @MapKeyColumn(name="\"nsmap Key\"", columnDefinition="varchar(20)", table="\"nsd c map\"")
     private Map<String, String> delimCollectionMap = 
         new HashMap<String, String>();
     
@@ -142,54 +142,54 @@
      * @return the collectionSet
      */
     public Set<String> getCollectionSet() {
-        return collectionSet;
+        return nscs;
     }
 
     /**
      * @param collectionSet the collectionSet to set
      */
     public void setCollectionSet(Set<String> collectionSet) {
-        this.collectionSet = collectionSet;
+        this.nscs = collectionSet;
     }
     
     public void addCollectionSet(String item) {
-        collectionSet.add(item);
+        nscs.add(item);
     }
 
     /**
      * @return the collectionNamedSet
      */
     public Set<String> getCollectionDelimSet() {
-        return collectionDelimSet;
+        return nscds;
     }
 
     /**
      * @param collectionNamedSet the collectionNamedSet to set
      */
     public void setCollectionDelimSet(Set<String> collectionDelimSet) {
-        this.collectionDelimSet = collectionDelimSet;
+        this.nscds = collectionDelimSet;
     } 
     
     public void addCollectionDelimSet(String item) {
-        this.collectionDelimSet.add(item);
+        this.nscds.add(item);
     }
 
     /**
      * @return the collectionMap
      */
     public Map<String, String> getCollectionMap() {
-        return collectionMap;
+        return nscollMap;
     }
 
     /**
      * @param collectionMap the collectionMap to set
      */
     public void setCollectionMap(Map<String, String> collectionMap) {
-        this.collectionMap = collectionMap;
+        this.nscollMap = collectionMap;
     }
 
     public void addCollectionMap(String key, String value) {
-        collectionMap.put(key, value);
+        nscollMap.put(key, value);
     }
 
     /**

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java Tue Jan 19 21:00:25 2010
@@ -23,7 +23,7 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="\"entity d4\"")
+@Table(name="\"nsentity d4\"")
 public class EntityG {
     @Id
     int id;

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java Tue Jan 19 21:00:25 2010
@@ -32,23 +32,17 @@
 import org.apache.openjpa.persistence.test.AllowFailure;
 import org.apache.openjpa.persistence.test.SQLListenerTestCase;
 
-@AllowFailure(message="Temporarily allowing this test to fail until cleanup " +
-    "order issues are resolved.")
 public class TestNoSchemaManualDelimId extends SQLListenerTestCase {
     OpenJPAEntityManager em;
     EntityF entityF;
     
     @Override
     public void setUp() throws Exception {
-        
-        // TODO: Delimiter support is currently limited to database that use
-        // double quote as a delimiter.
-        // Also Disabling DB2 until a SQLCODE -204 issue during the cleanup phase 
-        // is resolved.
-        setUnsupportedDatabases(MySQLDictionary.class, DB2Dictionary.class);
+
+        setUnsupportedDatabases(MySQLDictionary.class);
         if (isTestsDisabled())
             return;
-        
+
         super.setUp(
             org.apache.openjpa.persistence.delimited.identifiers.noschema.EntityF.class,
             DROP_TABLES);
@@ -124,7 +118,7 @@
     private void queryCollection() {
         String query =
             "SELECT DISTINCT f " +
-            "FROM EntityF f, IN(f.collectionDelimSet) s " +
+            "FROM EntityF f, IN(f.nscds) s " +
             "WHERE s = 'aaa'";
         Query q = em.createQuery(query);
         List<EntityF> results = (List<EntityF>)q.getResultList();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimIdSeqGen.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimIdSeqGen.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimIdSeqGen.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimIdSeqGen.java Tue Jan 19 21:00:25 2010
@@ -26,8 +26,6 @@
 import org.apache.openjpa.persistence.test.AllowFailure;
 import org.apache.openjpa.persistence.test.SQLListenerTestCase;
 
-@AllowFailure(message="Temporarily allowing this test to fail until cleanup " +
-    "order issues are resolved.")
 public class TestNoSchemaManualDelimIdSeqGen extends SQLListenerTestCase {
     OpenJPAEntityManager em;
     JDBCConfiguration conf;
@@ -39,11 +37,7 @@
     @Override
     public void setUp() throws Exception {
 
-        // TODO: Delimiter support is currently limited to database that use
-        // double quote as a delimiter.
-        // Also Disabling DB2 until a SQLCODE -204 issue during the cleanup phase 
-        // is resolved.
-        setUnsupportedDatabases(MySQLDictionary.class, DB2Dictionary.class);
+        setUnsupportedDatabases(MySQLDictionary.class);
         if (isTestsDisabled())
             return;
         
@@ -104,9 +98,7 @@
         em.getTransaction().begin();
         em.persist(entityE);
         em.getTransaction().commit();
-        
-        System.out.println(super.toString(sql));
-        
+                
         int genId = entityE.getId();
         em.clear();
         em.getTransaction().begin();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java Tue Jan 19 21:00:25 2010
@@ -30,8 +30,6 @@
 import org.apache.openjpa.persistence.test.AllowFailure;
 import org.apache.openjpa.persistence.test.SQLListenerTestCase;
 
-@AllowFailure(message="Temporarily allowing this test to fail until cleanup " +
-    "order issues are resolved.")
 public class TestNoSchemaManualDelimitedJoinAnnotations extends SQLListenerTestCase {
     OpenJPAEntityManager em;
     int id = 0;
@@ -46,14 +44,10 @@
     @Override
     public void setUp() throws Exception {
         
-        // TODO: Delimiter support is currently limited to database that use
-        // double quote as a delimiter.
-        // Also Disabling DB2 until a SQLCODE -204 issue during the cleanup phase 
-        // is resolved.
-        setUnsupportedDatabases(MySQLDictionary.class, DB2Dictionary.class);
+        setUnsupportedDatabases(MySQLDictionary.class);
         if (isTestsDisabled())
             return;
-
+        
         super.setUp(
             org.apache.openjpa.persistence.delimited.identifiers.noschema.EntityC.class,
             org.apache.openjpa.persistence.delimited.identifiers.noschema.EntityD.class,

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityH.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityH.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityH.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityH.java Tue Jan 19 21:00:25 2010
@@ -29,9 +29,9 @@
     
     private String secName;
     
-    private Collection<EntityI> entityIs = new HashSet<EntityI>();
+    private Collection<EntityI> eIs = new HashSet<EntityI>();
     
-    private EntityI2 entityI2;
+    private EntityI2 eI2;
     
     Map<EntityI3,EntityI4> map = new HashMap<EntityI3,EntityI4>();
     
@@ -86,31 +86,31 @@
     }
     
     public Collection<EntityI> getEntityIs() {
-        return entityIs;
+        return eIs;
     }
     /**
      * @param entityIs the entityIs to set
      */
     public void setEntityIs(Collection<EntityI> entityIs) {
-        this.entityIs = entityIs;
+        this.eIs = entityIs;
     }
     
     public void addEntityI(EntityI entityI) {
-        entityIs.add(entityI);
+        eIs.add(entityI);
     }
 
     /**
      * @return the entityI2
      */
     public EntityI2 getEntityI2() {
-        return entityI2;
+        return eI2;
     }
 
     /**
      * @param entityI2 the entityI2 to set
      */
     public void setEntityI2(EntityI2 entityI2) {
-        this.entityI2 = entityI2;
+        this.eI2 = entityI2;
     }
 
     /**

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI.java Tue Jan 19 21:00:25 2010
@@ -24,7 +24,7 @@
 public class EntityI {
     private int id;
     private String name;
-    private Collection<EntityH> entityHs = new HashSet<EntityH>();
+    private Collection<EntityH> eHs = new HashSet<EntityH>();
     
     public EntityI() {}
     
@@ -64,17 +64,17 @@
      * @return the entityHs
      */
     public Collection<EntityH> getEntityHs() {
-        return entityHs;
+        return eHs;
     }
 
     /**
      * @param entityHs the entityHs to set
      */
     public void setEntityHs(Collection<EntityH> entityHs) {
-        this.entityHs = entityHs;
+        this.eHs = entityHs;
     }
     
     public void addEntityH(EntityH entityH) {
-        entityHs.add(entityH);
+        eHs.add(entityH);
     }
 }

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI2.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI2.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI2.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/EntityI2.java Tue Jan 19 21:00:25 2010
@@ -22,7 +22,7 @@
     private int id;
     private String name;
     
-    private EntityI3 entityI3;
+    private EntityI3 eI3;
     
     public EntityI2() {}
     
@@ -62,13 +62,13 @@
      * @return the entityI3
      */
     public EntityI3 getEntityI3() {
-        return entityI3;
+        return eI3;
     }
 
     /**
      * @param entityI3 the entityI3 to set
      */
     public void setEntityI3(EntityI3 entityI3) {
-        this.entityI3 = entityI3;
+        this.eI3 = entityI3;
     }
 }

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java Tue Jan 19 21:00:25 2010
@@ -120,7 +120,7 @@
     private void queryJoinTable() {
         String query =
             "SELECT h " +
-            "FROM EntityH h JOIN h.entityIs i " +
+            "FROM EntityH h JOIN h.eIs i " +
             "WHERE i.name = 'ei'";
         Query q = em.createQuery(query);
         List<EntityH> results = (List<EntityH>)q.getResultList();
@@ -130,7 +130,7 @@
     private void queryJoinColumn() {
         String query = 
             "SELECT h " +
-            "FROM EntityH h JOIN h.entityI2 i2 " +
+            "FROM EntityH h JOIN h.eI2 i2 " +
             "WHERE i2.name = 'ei2'";
         Query q = em.createQuery(query);
         List<EntityH> results = (List<EntityH>)q.getResultList();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-joins-orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-joins-orm.xml?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-joins-orm.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-joins-orm.xml Tue Jan 19 21:00:25 2010
@@ -18,82 +18,82 @@
  under the License.   
 -->
 <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" 
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
                     http://java.sun.com/xml/ns/persistence/orm_2_0.xsd" 
-version="2.0">
+    version="2.0">
 	<entity class="org.apache.openjpa.persistence.delimited.identifiers.xml.EntityH">
-		<table name="&quot;entity h&quot;" schema="&quot;delim xml&quot;"/>
+		<table name="&quot;xe h&quot;" schema="&quot;delim xml&quot;"/>
 		<secondary-table name="&quot;h sec join table&quot;" schema="&quot;delim xml&quot;">
-			<primary-key-join-column name="&quot;entity h&quot;" referenced-column-name="&quot;h id&quot;"/>
+			<primary-key-join-column name="&quot;xe h&quot;" referenced-column-name="&quot;xh id&quot;"/>
 		</secondary-table>
 		<attributes>
 			<id name="id">
-				<column name="&quot;h id&quot;"/>
+				<column name="&quot;xh id&quot;"/>
 			</id>
 			<basic name="name"/>
 			<basic name="secName">
 				<column name="&quot;h sec join table&quot;"/>
 			</basic>
 			
-			<one-to-one name="entityI2">
-				<join-column name="&quot;enti2 id&quot;" referenced-column-name="&quot;entityI2 id&quot;"
-					table="&quot;join column&quot;"/>
+			<one-to-one name="eI2">
+				<join-column name="&quot;e2 id&quot;" referenced-column-name="&quot;eI2 id&quot;"
+					table="&quot;j tb&quot;"/>
 			</one-to-one>
 			
-			<many-to-many name="entityIs">
+			<many-to-many name="eIs">
 				<join-table name="&quot;h i&quot;" schema="&quot;delim xml&quot;"/>
 			</many-to-many>
 			
 			<many-to-many name="map">
-				<map-key-join-column name="&quot;map_ei3&quot;" referenced-column-name="&quot;entityI3 id&quot;"/>
-				<join-table name="&quot;map3 join table&quot;" schema="&quot;delim xml&quot;"/>
+				<map-key-join-column name="&quot;map_ei3&quot;" referenced-column-name="&quot;eI3 id&quot;"/>
+				<join-table name="&quot;m3 j t&quot;" schema="&quot;delim xml&quot;"/>
 			</many-to-many>
 			
 			<many-to-many name="map2">
-				<map-key-join-column name="&quot;map ei4&quot;" referenced-column-name="&quot;entityI4 id&quot;"
-					table="&quot;map key join column&quot;"/>
-				<join-table name="&quot;map4 join table&quot;" schema="&quot;delim xml&quot;"/>
+				<map-key-join-column name="&quot;map ei4&quot;" referenced-column-name="&quot;eI4 id&quot;"
+					table="&quot;m k j col&quot;"/>
+				<join-table name="&quot;m4 j t&quot;" schema="&quot;delim xml&quot;"/>
 			</many-to-many>
 		</attributes>
 	</entity>	
 	
 	<entity class="org.apache.openjpa.persistence.delimited.identifiers.xml.EntityI">
-		<table name="&quot;entity i&quot;" schema="&quot;delim xml&quot;"/>
+		<table name="&quot;xe i&quot;" schema="&quot;delim xml&quot;"/>
 		<attributes>
 			<id name="id"/>
-			<many-to-many name="entityHs" mapped-by="entityIs"/>
+			<many-to-many name="eHs" mapped-by="eIs"/>
 		</attributes>
 	</entity>
 	
 	<entity class="org.apache.openjpa.persistence.delimited.identifiers.xml.EntityI2">
-		<table name="&quot;entity i2&quot;" schema="&quot;delim xml&quot;"/>
+		<table name="&quot;xe i2&quot;" schema="&quot;delim xml&quot;"/>
 		<attributes>
 			<id name="id">
-				<column name="&quot;entityI2 id&quot;"/>
+				<column name="&quot;eI2 id&quot;"/>
 			</id>
 			<basic name="name"/>
-			<one-to-one name="entityI3">
+			<one-to-one name="eI3">
 				<primary-key-join-column/>
 			</one-to-one>
 		</attributes>
 	</entity>
 	
 	<entity class="org.apache.openjpa.persistence.delimited.identifiers.xml.EntityI3">
-		<table name="&quot;entity i3&quot;" schema="&quot;delim xml&quot;"/>
+		<table name="&quot;xe i3&quot;" schema="&quot;delim xml&quot;"/>
 		<attributes>
 			<id name="id">
-				<column name="&quot;entityI3 id&quot;"/>
+				<column name="&quot;eI3 id&quot;"/>
 			</id>
 			<basic name="name"/>
 		</attributes>
 	</entity>
 	
 	<entity class="org.apache.openjpa.persistence.delimited.identifiers.xml.EntityI4">
-		<table name="&quot;entity i4&quot;" schema="&quot;delim xml&quot;"/>
+		<table name="&quot;xe i4&quot;" schema="&quot;delim xml&quot;"/>
 		<attributes>
 			<id name="id">
-				<column name="&quot;entityI4 id&quot;"/>
+				<column name="&quot;eI4 id&quot;"/>
 			</id>
 			<basic name="name"/>
 		</attributes>

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-seq-gen-xml-orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-seq-gen-xml-orm.xml?rev=900955&r1=900954&r2=900955&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-seq-gen-xml-orm.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/delimited-identifiers-seq-gen-xml-orm.xml Tue Jan 19 21:00:25 2010
@@ -28,7 +28,7 @@
 			<id name="id">
 				<generated-value strategy="SEQUENCE" generator="xml-seq-gen"/>
 				<sequence-generator name="xml-seq-gen" sequence-name="&quot;xml seq gen&quot;"
-					schema="&quot;delim xml&quot;"/>
+					schema="&quot;delim xml seq&quot;"/>
 			</id>
 			<basic name="name">
 				<column name="&quot;b name&quot;"/>



Mime
View raw message