also groupby sub-relations inherit order from now on
This commit is contained in:
parent
01e4f2c9b3
commit
433fb5d580
1 changed files with 6 additions and 2 deletions
|
@ -246,7 +246,9 @@ public class Relation {
|
|||
throw new RuntimeException ("getGroupbyPropertyRelation called on non-group-by relation");
|
||||
if (filter != null)
|
||||
return filter;
|
||||
return new Relation (other, localField, remoteField, direction, true);
|
||||
Relation vr = new Relation (other, localField, remoteField, direction, true);
|
||||
vr.order = order;
|
||||
return vr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -255,7 +257,9 @@ public class Relation {
|
|||
public Relation getGroupbyPropertyRelation () {
|
||||
if (groupby == null)
|
||||
throw new RuntimeException ("getGroupbyPropertyRelation called on non-group-by relation");
|
||||
return new Relation (other, localField, remoteField, direction, true);
|
||||
Relation vr = new Relation (other, localField, remoteField, direction, true);
|
||||
vr.order = order;
|
||||
return vr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue