From 13fb6b5c9694ff08d891ffe164a74b8c90ba38c3 Mon Sep 17 00:00:00 2001 From: Alberto Miorin <32617+amiorin@users.noreply.github.com> Date: Fri, 3 Dec 2021 03:05:38 +0100 Subject: [PATCH] Fix #1529: Add the enum integer inside Relationship.java (#1531) --- .../catalog/jdbi3/Relationship.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/Relationship.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/Relationship.java index 97c1f001ce9..6c600bb31cd 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/Relationship.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/Relationship.java @@ -29,53 +29,53 @@ public enum Relationship { // Organization --- contains --> Team // Team --- contains --> User // Service --- contains --> Database - CONTAINS("contains"), + CONTAINS("contains"), // 0 // User/Bot --- created ---> Thread - CREATED("createdBy"), + CREATED("createdBy"), // 1 // User/Bot --- repliedTo ---> Thread - REPLIED_TO("repliedTo"), + REPLIED_TO("repliedTo"), // 2 // Thread --- isAbout ---> Entity - IS_ABOUT("isAbout"), + IS_ABOUT("isAbout"), // 3 // Thread --- addressedTo ---> User/Team - ADDRESSED_TO("addressedTo"), + ADDRESSED_TO("addressedTo"), // 4 // User, Team, Data assets --- mentionedIn ---> Thread - MENTIONED_IN("mentionedIn"), + MENTIONED_IN("mentionedIn"), // 5 // Entity --- testedBy ---> Test - TESTED_BY("testedBy"), + TESTED_BY("testedBy"), // 6 // {Dashboard|Pipeline|Query} --- uses ---> Table // {User} --- uses ---> {Table|Dashboard|Query} // {MlModel} --- uses ---> {Dashboard} - USES("uses"), + USES("uses"), // 7 // {User|Team|Org} --- owns ---> {Table|Dashboard|Query} - OWNS("owns"), + OWNS("owns"), // 8 // {Role} --- parentOf ---> {Role} - PARENT_OF("parentOf"), + PARENT_OF("parentOf"), // 9 // {User} --- has ---> {Role} // {Table} --- has ---> {Location} // {Database} --- has ---> {Location} - HAS("has"), + HAS("has"), // 10 // {User} --- follows ----> {Table, Database, Metrics...} - FOLLOWS("follows"), + FOLLOWS("follows"), // 11 // {Table.Column...} --- joinedWith ---> {Table.Column} - JOINED_WITH("joinedWith"), + JOINED_WITH("joinedWith"), // 12 // Lineage relationship // {Table1} --- upstream ---> {Table2} (Table1 is used for creating Table2} // {Pipeline} --- upstream ---> {Table2} (Pipeline creates Table2) // {Table} --- upstream ---> {Dashboard} (Table was used to create Dashboard) - UPSTREAM("upstream"); + UPSTREAM("upstream"); // 13 /*** Add new enums to the end of the list **/ private final String value;