diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java index 43b2aa8075..90e041b473 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java @@ -1025,7 +1025,7 @@ private AtlasEntityHeader mapVertexToAtlasEntityHeader(AtlasVertex entityVertex, if(includeClassifications){ ret.setClassificationNames(getAllTraitNamesFromAttribute(entityVertex)); } else if (!includeClassifications && includeClassificationNames) { - ret.setClassifications(getAllClassifications(entityVertex)); + ret.setClassificationNames(getAllTraitNamesFromAttribute(entityVertex)); } ret.setIsIncomplete(isIncomplete); ret.setLabels(getLabels(entityVertex));