airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata git commit: using BigInt for derby
Date Thu, 16 Mar 2017 19:31:37 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 866178a41 -> 5d1b34595


using BigInt for derby


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

Branch: refs/heads/develop
Commit: 5d1b345952ed217732ba271097f850751c333c40
Parents: 866178a
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Thu Mar 16 15:31:33 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Thu Mar 16 15:31:33 2017 -0400

----------------------------------------------------------------------
 .../sharing/registry/db/repositories/EntityRepository.java       | 4 ++--
 .../src/main/resources/sharing-registry-derby.sql                | 2 +-
 .../src/main/resources/sharing-registry-mysql.sql                | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/5d1b3459/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 26c15f0..504a75b 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
@@ -145,8 +145,8 @@ public class EntityRepository extends AbstractRepository<Entity, EntityEntity,
E
             entity.setDescription((String)(rs[6]));
             entity.setBinaryData((byte[]) (rs[7]));
             entity.setFullText((String) (rs[8]));
-            entity.setOriginalEntityCreationTime((long)(rs[9]));
-            entity.setSharedCount((long) rs[10]);
+            entity.setSharedCount((int) rs[9]);
+            entity.setOriginalEntityCreationTime((long) (rs[10]));
             entity.setCreatedTime((long) (rs[11]));
             entity.setUpdatedTime((long) (rs[12]));
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/5d1b3459/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
b/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
index 2a9c82d..4a71a99 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
+++ b/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
@@ -101,8 +101,8 @@ CREATE TABLE ENTITY (
   DESCRIPTION VARCHAR(255),
   BINARY_DATA BLOB,
   FULL_TEXT VARCHAR(255),
+  SHARED_COUNT INT DEFAULT 0,
   ORIGINAL_ENTITY_CREATION_TIME BIGINT NOT NULL,
-  SHARED_COUNT BIGINT DEFAULT 0,
   CREATED_TIME BIGINT NOT NULL,
   UPDATED_TIME BIGINT NOT NULL,
   PRIMARY KEY (ENTITY_ID, DOMAIN_ID),

http://git-wip-us.apache.org/repos/asf/airavata/blob/5d1b3459/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-mysql.sql
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-mysql.sql
b/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-mysql.sql
index f3eda86..ad5f435 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-mysql.sql
+++ b/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-mysql.sql
@@ -101,8 +101,8 @@ CREATE TABLE ENTITY (
   DESCRIPTION VARCHAR(255),
   BINARY_DATA BLOB,
   FULL_TEXT TEXT,
+  SHARED_COUNT INT(4) DEFAULT 0,
   ORIGINAL_ENTITY_CREATION_TIME BIGINT NOT NULL,
-  SHARED_COUNT BIGINT DEFAULT 0,
   CREATED_TIME BIGINT NOT NULL,
   UPDATED_TIME BIGINT NOT NULL,
   PRIMARY KEY (ENTITY_ID, DOMAIN_ID),


Mime
View raw message