Commit 8135a4b8 authored by Niels Erik G. Nielsen's avatar Niels Erik G. Nielsen
Browse files

Sort tsas by transformation, position

parent 53092e01
......@@ -114,9 +114,9 @@ public class TransformationStepAssociationsDAOJPA implements TransformationStepA
List<TransformationStepAssociation> hables = new LinkedList<>();
try {
tx.begin();
String queryString = "select object(o) from TransformationStepAssociation as o" + query.asWhereClause("o");
Query q = em.createQuery("select object(o) from TransformationStepAssociation as o" + query.asWhereClause("o"));
String queryString = "select object(o) from TransformationStepAssociation as o" + query.asWhereClause("o") + " order by o.transformation.id, o.position";
logger.info("Query is: " + queryString);
Query q = em.createQuery(queryString);
q.setMaxResults(max);
q.setFirstResult(start);
hables = q.getResultList();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment