mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
ADD @OrderBy to fix Postgres-tests
This commit is contained in:
@@ -8,6 +8,7 @@ import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.OrderBy;
|
||||
|
||||
import com.avaje.ebean.annotation.Formula;
|
||||
import com.avaje.tests.model.basic.EBasic;
|
||||
@@ -16,6 +17,7 @@ import com.avaje.tests.model.basic.EBasic;
|
||||
public class GrandParentPerson extends InheritablePerson {
|
||||
|
||||
@OneToMany(mappedBy = "parent", cascade = CascadeType.ALL)
|
||||
@OrderBy("identifier")
|
||||
private List<ParentPerson> children = new ArrayList<>();
|
||||
|
||||
// This rather complex formulas should be built later by CustomAnnotationParser
|
||||
|
||||
Reference in New Issue
Block a user