airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata] branch staging updated: AIRAVATA-3102 convert ms timestamps as long instead of int
Date Wed, 10 Jul 2019 19:28:45 GMT
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/staging by this push:
     new b64e87e  AIRAVATA-3102 convert ms timestamps as long instead of int
b64e87e is described below

commit b64e87e993ea692ed8d1102b98a0237dde620cb8
Author: Marcus Christie <machrist@iu.edu>
AuthorDate: Wed Jul 10 15:21:07 2019 -0400

    AIRAVATA-3102 convert ms timestamps as long instead of int
---
 .../sharing/registry/db/repositories/EntityRepository.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 070bba2..5a6c32d 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
@@ -99,15 +99,15 @@ public class EntityRepository extends AbstractRepository<Entity, EntityEntity,
E
                 }
             }else if(searchCriteria.getSearchField().equals(EntitySearchField.CREATED_TIME)){
                 if(searchCriteria.getSearchCondition().equals(SearchCondition.GTE)){
-                    query += "E.CREATED_TIME >= " + Integer.parseInt(searchCriteria.getValue().trim())
+ " AND ";
+                    query += "E.CREATED_TIME >= " + Long.parseLong(searchCriteria.getValue().trim())
+ " AND ";
                 }else{
-                    query += "E.CREATED_TIME <= " + Integer.parseInt(searchCriteria.getValue().trim())
+ " AND ";
+                    query += "E.CREATED_TIME <= " + Long.parseLong(searchCriteria.getValue().trim())
+ " AND ";
                 }
             }else if(searchCriteria.getSearchField().equals(EntitySearchField.UPDATED_TIME)){
                 if(searchCriteria.getSearchCondition().equals(SearchCondition.GTE)){
-                    query += "E.UPDATED_TIME >= " + Integer.parseInt(searchCriteria.getValue().trim())
+ " AND ";
+                    query += "E.UPDATED_TIME >= " + Long.parseLong(searchCriteria.getValue().trim())
+ " AND ";
                 }else{
-                    query += "E.UPDATED_TIME <= " + Integer.parseInt(searchCriteria.getValue().trim())
+ " AND ";
+                    query += "E.UPDATED_TIME <= " + Long.parseLong(searchCriteria.getValue().trim())
+ " AND ";
                 }
             } else if (searchCriteria.getSearchField().equals(EntitySearchField.SHARED_COUNT))
{
                 if (searchCriteria.getSearchCondition().equals(SearchCondition.GTE)) {


Mime
View raw message