airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2728) Refactoring Experiment Catalog Implementation
Date Fri, 27 Apr 2018 20:47:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-2728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457033#comment-16457033
] 

ASF GitHub Bot commented on AIRAVATA-2728:
------------------------------------------

machristie commented on a change in pull request #191: [AIRAVATA-2728] Refactoring Experiment
Catalog Implementation
URL: https://github.com/apache/airavata/pull/191#discussion_r184796544
 
 

 ##########
 File path: modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ExperimentEntity.java
 ##########
 @@ -21,36 +21,88 @@
 package org.apache.airavata.registry.core.entities.expcatalog;
 
 import javax.persistence.*;
+import java.io.Serializable;
+import java.sql.Timestamp;
 import java.util.List;
 
+/**
+ * The persistent class for the experiment database table.
+ */
 @Entity
-@Table(name = "EXPCAT_EXPERIMENT")
-public class ExperimentEntity {
+@Table(name = "EXPERIMENT")
+public class ExperimentEntity implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @Column(name = "EXPERIMENT_ID")
     public String experimentId;
+
+    @Column(name = "PROJECT_ID")
     public String projectId;
+
+    @Column(name = "GATEWAY_ID")
     public String gatewayId;
+
+    @Column(name = "EXPERIMENT_TYPE")
     public String experimentType;
+
+    @Column(name = "USER_NAME")
     public String userName;
+
+    @Column(name = "EXPERIMENT_NAME")
     public String experimentName;
-    public long creationTime;
+
+    @Column(name = "CREATION_TIME")
+    public Timestamp creationTime;
+
+    @Column(name = "DESCRIPTION")
     public String description;
+
+    @Column(name = "EXECUTION_ID")
     public String executionId;
+
+    @Column(name = "GATEWAY_EXECUTION_ID")
     public String gatewayExecutionId;
+
+    @Column(name = "GATEWAY_INSTANCE_ID")
     public String gatewayInstanceId;
+
+    @Column(name = "ENABLE_EMAIL_NOTIFICATION")
     public boolean enableEmailNotification;
+
+    @Lob
+    @ElementCollection(fetch = FetchType.EAGER)
+    @CollectionTable(name="EXPCAT_EXPERIMENT_EMAIL", joinColumns = @JoinColumn(name="EXPERIMENT_ID"))
 
 Review comment:
   No such table EXPCAT_EXPERIMENT_EMAIL. EMAIL_ADDRESSES is a TEXT (CLOB) column.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Refactoring Experiment Catalog Implementation
> ---------------------------------------------
>
>                 Key: AIRAVATA-2728
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2728
>             Project: Airavata
>          Issue Type: Improvement
>          Components: Registry API
>            Reporter: Sneha Tilak
>            Assignee: Sneha Tilak
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message