ATLAS-2938: EntityGraphMapper stores updated version number

Signed-off-by: grahamwallis <graham_wal...@uk.ibm.com>


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

Branch: refs/heads/branch-1.0
Commit: a49cf6c8bb47b58663b994aad89a8b886c77272f
Parents: 85b21af
Author: Graham Wallis <grahamwallis@Grahams-MacBook-Pro.local>
Authored: Fri Oct 26 15:05:23 2018 +0100
Committer: Ashutosh Mestry <ames...@hortonworks.com>
Committed: Thu Nov 1 15:42:59 2018 -0700

----------------------------------------------------------------------
 .../atlas/repository/store/graph/v2/EntityGraphMapper.java       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/a49cf6c8/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
----------------------------------------------------------------------
diff --git 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
index 507cc85..52355a5 100644
--- 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
+++ 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
@@ -176,6 +176,10 @@ public class EntityGraphMapper {
             AtlasGraphUtilsV2.setEncodedProperty(vertex, STATE_PROPERTY_KEY, 
entity.getStatus().name());
         }
 
+        if (entity.getVersion() != null) {
+            AtlasGraphUtilsV2.setEncodedProperty(vertex, VERSION_PROPERTY_KEY, 
entity.getVersion());
+        }
+
         if (entity.getCreateTime() != null) {
             AtlasGraphUtilsV2.setEncodedProperty(vertex, 
TIMESTAMP_PROPERTY_KEY, entity.getCreateTime().getTime());
         }

Reply via email to