Use order when prefetching grouped child objects.
This commit is contained in:
parent
6e3c814e08
commit
5372bd8fc8
1 changed files with 2 additions and 0 deletions
|
@ -808,6 +808,8 @@ public final class NodeManager {
|
||||||
whereBuffer.append (')');
|
whereBuffer.append (')');
|
||||||
if (rel.groupby != null) {
|
if (rel.groupby != null) {
|
||||||
whereBuffer.insert (0, rel.renderConstraints (home, home.getNonVirtualParent ()));
|
whereBuffer.insert (0, rel.renderConstraints (home, home.getNonVirtualParent ()));
|
||||||
|
if (rel.order != null)
|
||||||
|
whereBuffer.append (" ORDER BY "+rel.order);
|
||||||
}
|
}
|
||||||
tds.where (whereBuffer.toString ());
|
tds.where (whereBuffer.toString ());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue