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 Mon, 30 Apr 2018 13:02:00 GMT

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

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_r184978485
 
 

 ##########
 File path: modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProjectEntity.java
 ##########
 @@ -18,25 +18,51 @@
  * under the License.
  *
 */
-package org.apache.airavata.registry.core.entities.workspacecatalog;
+package org.apache.airavata.registry.core.entities.expcatalog;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
+import javax.persistence.*;
+import java.util.List;
+import java.io.Serializable;
+import java.sql.Timestamp;
 
+/**
+ * The persistent class for the project database table.
+ */
 @Entity
-@Table(name = "WORKSPACE_PROJECT")
-public class ProjectEntity {
+@Table(name = "PROJECT")
+public class ProjectEntity implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @Column(name = "PROJECT_ID")
     private String projectID;
+
+    @Column(name = "USER_NAME")
     private String owner;
+
+    @Column(name = "GATEWAY_ID")
     private String gatewayId;
+
+    @Column(name = "PROJECT_NAME")
     private String name;
+
+    @Column(name = "DESCRIPTION")
     private String description;
-    private long creationTime;
 
-    @Id
-    @Column(name = "PROJECT_ID")
+    @Column(name = "CREATION_TIME")
+    private Timestamp creationTime;
+
+    @ElementCollection(fetch = FetchType.EAGER)
+    @CollectionTable(name="SHARING_USER", joinColumns = @JoinColumn(name="USER_ID"))
 
 Review comment:
   There's no SHARING_USER or USER_GROUP tables in experiment catalog.  We're not really using
these fields on the Project model so I think we can just leave them off the entity for now.

----------------------------------------------------------------
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