From c5a3a56b482741c736e20816c96a2dfc41204cb1 Mon Sep 17 00:00:00 2001 From: Albert Lee Date: Thu, 12 Mar 2009 16:00:42 +0000 Subject: [PATCH] OPENJPA-905 - Commit contribution by Tim McConnell. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752912 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/persistence/kernel/TestProxies2.java | 4 ++-- .../openjpa/persistence/kernel/common/apps/ProxiesPC.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/TestProxies2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/TestProxies2.java index 9640b73b4..069853789 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/TestProxies2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/TestProxies2.java @@ -452,9 +452,9 @@ public class TestProxies2 extends BaseKernelTest { assertEquals(5, list.size()); assertEquals("val1", list.get(0)); assertEquals("val1", list.get(1)); - assertEquals("val3", list.get(2)); + assertEquals("val2", list.get(2)); assertEquals("val3", list.get(3)); - assertEquals("val2", list.get(4)); + assertEquals("val3", list.get(4)); endEm(pm); } diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/ProxiesPC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/ProxiesPC.java index c77f17761..3e0116366 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/ProxiesPC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/ProxiesPC.java @@ -34,6 +34,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToMany; +import javax.persistence.OrderBy; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @@ -74,6 +75,7 @@ public class ProxiesPC implements Comparable { private TreeMap proxyMap = new TreeMap(); @PersistentCollection + @OrderBy private List list = new ArrayList(); @PersistentCollection