OPENJPA-905 - Commit contribution by Tim McConnell.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2009-03-12 16:00:42 +00:00
parent 393111b875
commit c5a3a56b48
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -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<String, ProxiesPC> proxyMap = new TreeMap();
@PersistentCollection
@OrderBy
private List<String> list = new ArrayList();
@PersistentCollection