diff --git a/cerberus-domain/src/main/java/com/nike/cerberus/domain/SDBMetadata.java b/cerberus-domain/src/main/java/com/nike/cerberus/domain/SDBMetadata.java index 2340e9a1e..f05b195f1 100644 --- a/cerberus-domain/src/main/java/com/nike/cerberus/domain/SDBMetadata.java +++ b/cerberus-domain/src/main/java/com/nike/cerberus/domain/SDBMetadata.java @@ -21,6 +21,7 @@ public class SDBMetadata { + private String id; private String name; private String path; private String category; @@ -129,4 +130,12 @@ public Map> getData() { public void setData(Map> data) { this.data = data; } + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } } diff --git a/cerberus-web/src/main/java/com/nike/cerberus/service/MetadataService.java b/cerberus-web/src/main/java/com/nike/cerberus/service/MetadataService.java index 8d3f8bbc6..c37cb2616 100644 --- a/cerberus-web/src/main/java/com/nike/cerberus/service/MetadataService.java +++ b/cerberus-web/src/main/java/com/nike/cerberus/service/MetadataService.java @@ -229,6 +229,7 @@ protected List getSDBMetadataList(int limit, int offset, String sdb sdb -> { SDBMetadata data = new SDBMetadata(); data.setName(sdb.getName()); + data.setId(sdb.getId()); data.setPath(sdb.getPath()); data.setDescription(sdb.getDescription()); data.setCategory(catIdToStringMap.get(sdb.getCategoryId()));