airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [39/50] [abbrv] airavata git commit: orderby clause in experiment search
Date Thu, 03 Aug 2017 16:01:55 GMT
orderby clause in experiment search


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/7307b317
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/7307b317
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/7307b317

Branch: refs/heads/master
Commit: 7307b317a04faf0f375c8eb64b3d0514bd1ba8ff
Parents: edd1dbb
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Jul 18 13:44:09 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Jul 18 13:44:09 2017 -0400

----------------------------------------------------------------------
 .../sharing/registry/db/repositories/EntityRepository.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/7307b317/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/EntityRepository.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/EntityRepository.java
b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/EntityRepository.java
index ecc5270..6945f44 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/EntityRepository.java
+++ b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/EntityRepository.java
@@ -130,7 +130,7 @@ public class EntityRepository extends AbstractRepository<Entity, EntityEntity,
E
         }
 
         query = query.substring(0, query.length() - 5);
-        query += " ORDER BY p."+DBConstants.EntityTable.ORIGINAL_ENTITY_CREATION_TIME+" DESC";
+        query += " ORDER BY E."+DBConstants.EntityTable.ORIGINAL_ENTITY_CREATION_TIME+" DESC";
 
         final String nativeQuery = query;
         int newLimit = limit < 0 ? DBConstants.SELECT_MAX_ROWS: limit;


Mime
View raw message