mirror of https://github.com/apache/openjpa.git
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:
parent
393111b875
commit
c5a3a56b48
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue