You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2019/03/27 14:22:37 UTC

[atlas] branch branch-1.0 updated: ATLAS-3102: updated copy constructor of AtlasBaseTypeDef to copy serviceType

This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch branch-1.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-1.0 by this push:
     new 96fae1d  ATLAS-3102: updated copy constructor of AtlasBaseTypeDef to copy serviceType
96fae1d is described below

commit 96fae1daa5ae5fd3b09f2c89d9efcc17b28becc8
Author: Diego Marino Monetti <dm...@gmail.com>
AuthorDate: Tue Mar 26 19:50:58 2019 +0100

    ATLAS-3102: updated copy constructor of AtlasBaseTypeDef to copy serviceType
    
    Signed-off-by: Madhan Neethiraj <ma...@apache.org>
    (cherry picked from commit 727e6e0312f99c2ca91d3909ece47ae2604acd08)
---
 intg/src/main/java/org/apache/atlas/model/typedef/AtlasBaseTypeDef.java | 2 ++
 .../main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasBaseTypeDef.java b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasBaseTypeDef.java
index 5dfb304..eb86345 100644
--- a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasBaseTypeDef.java
+++ b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasBaseTypeDef.java
@@ -191,6 +191,7 @@ public abstract class AtlasBaseTypeDef implements java.io.Serializable {
             setUpdateTime(other.getUpdateTime());
             setVersion(other.getVersion());
             setName(other.getName());
+            setServiceType(other.getServiceType());
             setDescription(other.getDescription());
             setTypeVersion(other.getTypeVersion());
             setOptions(other.getOptions());
@@ -204,6 +205,7 @@ public abstract class AtlasBaseTypeDef implements java.io.Serializable {
             setUpdateTime(null);
             setVersion(null);
             setName(null);
+            setServiceType(null);
             setDescription(null);
             setTypeVersion(null);
             setOptions(null);
diff --git a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java
index bb834c1..98fbde5 100644
--- a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java
+++ b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java
@@ -269,7 +269,7 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri
         setEndDef2(endDef2);
     }
 
-    public AtlasRelationshipDef(AtlasRelationshipDef other) throws AtlasBaseException {
+    public AtlasRelationshipDef(AtlasRelationshipDef other) {
         super(other);
 
         if (other != null) {