cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r550945 - in /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map: Embeddable.java EmbeddedAttribute.java
Date Tue, 26 Jun 2007 20:54:15 GMT
Author: aadamchik
Date: Tue Jun 26 13:54:14 2007
New Revision: 550945

URL: http://svn.apache.org/viewvc?view=rev&rev=550945
Log:
fixing xml encoding issue

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/Embeddable.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/EmbeddedAttribute.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/Embeddable.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/Embeddable.java?view=diff&rev=550945&r1=550944&r2=550945
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/Embeddable.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/Embeddable.java
Tue Jun 26 13:54:14 2007
@@ -133,7 +133,7 @@
     public void encodeAsXML(XMLEncoder encoder) {
         encoder.print("<embeddable");
         if (getClassName() != null) {
-            encoder.print("\" className=\"");
+            encoder.print(" className=\"");
             encoder.print(getClassName());
             encoder.print("\"");
         }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/EmbeddedAttribute.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/EmbeddedAttribute.java?view=diff&rev=550945&r1=550944&r2=550945
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/EmbeddedAttribute.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/map/EmbeddedAttribute.java
Tue Jun 26 13:54:14 2007
@@ -21,9 +21,10 @@
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
 
 import org.apache.cayenne.CayenneRuntimeException;
 import org.apache.cayenne.util.Util;
@@ -38,10 +39,10 @@
 public class EmbeddedAttribute extends Attribute {
 
     protected String type;
-    protected Map attributeOverrides;
+    protected SortedMap attributeOverrides;
 
     public EmbeddedAttribute() {
-        attributeOverrides = new HashMap();
+        attributeOverrides = new TreeMap();
     }
 
     public EmbeddedAttribute(String name) {
@@ -72,6 +73,9 @@
         encoder.println('>');
 
         encoder.indent(1);
+        
+        
+        
         Iterator it = attributeOverrides.entrySet().iterator();
         while (it.hasNext()) {
             Map.Entry e = (Map.Entry) it.next();



Mime
View raw message