You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by gr...@apache.org on 2018/11/01 12:09:07 UTC
atlas git commit: ATLAS-2938: EntityGraphMapper stores updated
version number
Repository: atlas
Updated Branches:
refs/heads/master 7e4788ed0 -> fb7e9eaf9
ATLAS-2938: EntityGraphMapper stores updated version number
Signed-off-by: grahamwallis <gr...@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/fb7e9eaf
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/fb7e9eaf
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/fb7e9eaf
Branch: refs/heads/master
Commit: fb7e9eaf9c4453a1dcba9f7597b6ab67d3637a0e
Parents: 7e4788e
Author: Graham Wallis <gr...@Grahams-MacBook-Pro.local>
Authored: Fri Oct 26 15:05:23 2018 +0100
Committer: grahamwallis <gr...@uk.ibm.com>
Committed: Thu Nov 1 12:08:04 2018 +0000
----------------------------------------------------------------------
.../atlas/repository/store/graph/v2/EntityGraphMapper.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/atlas/blob/fb7e9eaf/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 0452954..e8c8c0c 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
@@ -142,6 +142,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());
}