Repository: atlas
Updated Branches:
  refs/heads/branch-1.0 d88771e10 -> 750b221d4


ATLAS-2979: added serviceType field to AtlasTypeDefHeader

Signed-off-by: Madhan Neethiraj <mad...@apache.org>
(cherry picked from commit 5da376483b37ffe56bc23f5db54149e1e0534a36)


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/750b221d
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/750b221d
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/750b221d

Branch: refs/heads/branch-1.0
Commit: 750b221d4f7f6b4e8527349bc4ef355626a32a3f
Parents: d88771e
Author: nikhilbonte <nikhil.bo...@freestoneinfotech.com>
Authored: Thu Nov 22 19:01:36 2018 +0530
Committer: Madhan Neethiraj <mad...@apache.org>
Committed: Tue Nov 27 07:25:33 2018 -0800

----------------------------------------------------------------------
 .../atlas/model/typedef/AtlasTypeDefHeader.java | 21 ++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/750b221d/intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java
----------------------------------------------------------------------
diff --git 
a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java 
b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java
index b0edcc0..4678343 100644
--- a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java
+++ b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java
@@ -43,6 +43,7 @@ public class AtlasTypeDefHeader implements 
java.io.Serializable {
 
     private String guid;
     private String name;
+    private String serviceType = null;
     private TypeCategory category;
 
     public AtlasTypeDefHeader() {
@@ -55,8 +56,13 @@ public class AtlasTypeDefHeader implements 
java.io.Serializable {
         this.category = category;
     }
 
+    public AtlasTypeDefHeader(String guid, String name, TypeCategory category, 
String serviceType) {
+        this(guid, name, category);
+        this.serviceType = serviceType;
+    }
+
     public AtlasTypeDefHeader(AtlasBaseTypeDef typeDef) {
-        this(typeDef.getGuid(), typeDef.getName(), typeDef.getCategory());
+        this(typeDef.getGuid(), typeDef.getName(), typeDef.getCategory(), 
typeDef.getServiceType());
     }
 
     public AtlasTypeDefHeader(AtlasTypeDefHeader other) {
@@ -65,10 +71,12 @@ public class AtlasTypeDefHeader implements 
java.io.Serializable {
             setGuid(null);
             setName(null);
             setCategory(null);
+            setServiceType(null);
         } else {
             setGuid(other.getGuid());
             setName(other.getName());
             setCategory(other.getCategory());
+            setServiceType(other.getServiceType());
         }
     }
 
@@ -96,6 +104,13 @@ public class AtlasTypeDefHeader implements 
java.io.Serializable {
         this.category = category;
     }
 
+    public String getServiceType() {
+        return serviceType;
+    }
+
+    public void setServiceType(String serviceType) {
+        this.serviceType = serviceType;
+    }
 
     @Override
     public String toString() {
@@ -110,12 +125,13 @@ public class AtlasTypeDefHeader implements 
java.io.Serializable {
         AtlasTypeDefHeader that = (AtlasTypeDefHeader) o;
         return Objects.equals(guid, that.guid) &&
                 Objects.equals(name, that.name) &&
+                Objects.equals(serviceType, that.serviceType) &&
                 category == that.category;
     }
 
     @Override
     public int hashCode() {
-        return Objects.hash(guid, name, category);
+        return Objects.hash(guid, name, category, serviceType);
     }
 
     public StringBuilder toString(StringBuilder sb) {
@@ -127,6 +143,7 @@ public class AtlasTypeDefHeader implements 
java.io.Serializable {
         sb.append("guid='").append(guid).append('\'');
         sb.append(", name='").append(name).append('\'');
         sb.append(", typeCategory='").append(category).append('\'');
+        sb.append(", serviceType='").append(serviceType).append('\'');
         sb.append('}');
 
         return sb;

Reply via email to