Repository: airavata Updated Branches: refs/heads/develop eeea42eee -> 504f83930
Add AiravataInternalGatewayId to GatewayEntity in ProfileService Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/504f8393 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/504f8393 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/504f8393 Branch: refs/heads/develop Commit: 504f83930770b3319dd184208a6ded5197087f2c Parents: eeea42e Author: Gourav Shenoy <[email protected]> Authored: Tue Jun 6 11:00:13 2017 -0400 Committer: Gourav Shenoy <[email protected]> Committed: Tue Jun 6 11:00:13 2017 -0400 ---------------------------------------------------------------------- .../commons/tenant/entities/GatewayEntity.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/504f8393/airavata-services/profile-service/profile-service-commons/src/main/java/org/apache/airavata/service/profile/commons/tenant/entities/GatewayEntity.java ---------------------------------------------------------------------- diff --git a/airavata-services/profile-service/profile-service-commons/src/main/java/org/apache/airavata/service/profile/commons/tenant/entities/GatewayEntity.java b/airavata-services/profile-service/profile-service-commons/src/main/java/org/apache/airavata/service/profile/commons/tenant/entities/GatewayEntity.java index 8d9a25d..a63c0a1 100644 --- a/airavata-services/profile-service/profile-service-commons/src/main/java/org/apache/airavata/service/profile/commons/tenant/entities/GatewayEntity.java +++ b/airavata-services/profile-service/profile-service-commons/src/main/java/org/apache/airavata/service/profile/commons/tenant/entities/GatewayEntity.java @@ -25,11 +25,13 @@ import org.slf4j.LoggerFactory; import javax.persistence.*; import java.util.Date; +import java.util.UUID; @Entity @Table(name = "GATEWAY") public class GatewayEntity { private final static Logger logger = LoggerFactory.getLogger(GatewayEntity.class); + private String airavataInternalGatewayId; private String gatewayId; private String gatewayName; private String domain; @@ -50,7 +52,21 @@ public class GatewayEntity { private long requestCreationTime; private String requesterUsername; + // set random value for internalGatewayId + public GatewayEntity() { + this.airavataInternalGatewayId = UUID.randomUUID().toString(); + } + @Id + @Column(name = "AIRAVATA_INTERNAL_GATEWAY_ID") + public String getAiravataInternalGatewayId() { + return airavataInternalGatewayId; + } + + public void setAiravataInternalGatewayId(String airavataInternalGatewayId) { + this.airavataInternalGatewayId = airavataInternalGatewayId; + } + @Column(name = "GATEWAY_ID") public String getGatewayId() { return gatewayId;
