Author: stliu
Date: 2010-03-01 07:58:26 -0500 (Mon, 01 Mar 2010)
New Revision: 18908
Modified:
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/emops/Competition.java
Log:
JBPAPP-3071 Some tests in MergeTest fails because of "unsorted" bag
Modified:
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/emops/Competition.java
===================================================================
---
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/emops/Competition.java 2010-03-01
12:16:27 UTC (rev 18907)
+++
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/emops/Competition.java 2010-03-01
12:58:26 UTC (rev 18908)
@@ -1,7 +1,6 @@
//$Id: $
package org.hibernate.ejb.test.emops;
-import java.util.Collection;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
@@ -12,6 +11,7 @@
import javax.persistence.FetchType;
import javax.persistence.JoinTable;
import javax.persistence.JoinColumn;
+import javax.persistence.OrderBy;
/**
* @author Emmanuel Bernard
@@ -26,6 +26,7 @@
fetch = FetchType.LAZY)
@JoinTable(name="competition_competitor")
@JoinColumn
+ @OrderBy("id")
private List<Competitor> competitors = new ArrayList<Competitor>();
Show replies by date