From 30f3f64f163df60014eeb32e09c75ce1f0b5cef8 Mon Sep 17 00:00:00 2001 From: sureshms Date: Fri, 22 Oct 2021 09:20:08 -0700 Subject: [PATCH] Remove *Repository3 classes --- .../catalog/CatalogHealthCheck.java | 1 - .../catalog/jdbi3/BotsRepository3.java | 24 ------- .../catalog/jdbi3/ChartRepository3.java | 41 ------------ .../catalog/jdbi3/DashboardRepository3.java | 45 ------------- .../jdbi3/DashboardServiceRepository3.java | 27 -------- .../catalog/jdbi3/DatabaseRepository3.java | 42 ------------- .../jdbi3/DatabaseServiceRepository3.java | 27 -------- .../catalog/jdbi3/FeedRepository3.java | 63 ------------------- .../catalog/jdbi3/LineageRepository3.java | 54 ---------------- .../jdbi3/MessagingServiceRepository3.java | 27 -------- .../catalog/jdbi3/MetricsRepository3.java | 39 ------------ .../catalog/jdbi3/ModelRepository3.java | 42 ------------- .../catalog/jdbi3/PipelineRepository3.java | 42 ------------- .../jdbi3/PipelineServiceRepository3.java | 27 -------- .../catalog/jdbi3/ReportRepository3.java | 36 ----------- .../catalog/jdbi3/TableRepository3.java | 48 -------------- .../catalog/jdbi3/TagRepository3.java | 24 ------- .../catalog/jdbi3/TaskRepository3.java | 39 ------------ .../catalog/jdbi3/TeamRepository3.java | 60 ------------------ .../catalog/jdbi3/TopicRepository3.java | 39 ------------ .../catalog/jdbi3/UsageRepository3.java | 57 ----------------- .../catalog/jdbi3/UserRepository3.java | 60 ------------------ .../resources/charts/ChartResource.java | 2 +- .../resources/databases/DatabaseResource.java | 2 +- .../resources/databases/TableResource.java | 3 +- .../resources/models/ModelResource.java | 3 +- .../resources/topics/TopicResource.java | 2 +- .../security/DefaultCatalogAuthorizer.java | 1 - .../catalog/util/EntityUpdater3.java | 3 +- 29 files changed, 7 insertions(+), 873 deletions(-) delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/BotsRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ChartRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardServiceRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseServiceRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/FeedRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/LineageRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MessagingServiceRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MetricsRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ModelRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineServiceRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ReportRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TableRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TagRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TaskRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TeamRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TopicRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UsageRepository3.java delete mode 100644 catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UserRepository3.java diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/CatalogHealthCheck.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/CatalogHealthCheck.java index a8e4d1e93ae..865296d531d 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/CatalogHealthCheck.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/CatalogHealthCheck.java @@ -19,7 +19,6 @@ package org.openmetadata.catalog; import com.codahale.metrics.health.HealthCheck; import org.jdbi.v3.core.Jdbi; import org.openmetadata.catalog.jdbi3.CollectionDAO; -import org.openmetadata.catalog.jdbi3.UserRepository3; import org.openmetadata.catalog.jdbi3.UserRepositoryHelper; import org.openmetadata.catalog.util.EntityUtil; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/BotsRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/BotsRepository3.java deleted file mode 100644 index 413db0baff6..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/BotsRepository3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface BotsRepository3 { - @CreateSqlObject - BotsDAO3 botsDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ChartRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ChartRepository3.java deleted file mode 100644 index 4bac261cd33..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ChartRepository3.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -import static org.openmetadata.catalog.exception.CatalogExceptionMessage.entityNotFound; - -public interface ChartRepository3 { - @CreateSqlObject - ChartDAO3 chartDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - DashboardServiceDAO3 dashboardServiceDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardRepository3.java deleted file mode 100644 index 34eb738dc8e..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardRepository3.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface DashboardRepository3 { - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - ChartDAO3 chartDAO(); - - @CreateSqlObject - DashboardServiceDAO3 dashboardServiceDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - UsageDAO3 usageDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardServiceRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardServiceRepository3.java deleted file mode 100644 index c36648aea29..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DashboardServiceRepository3.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface DashboardServiceRepository3 { - @CreateSqlObject - DashboardServiceDAO3 dashboardServiceDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); -} \ No newline at end of file diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseRepository3.java deleted file mode 100644 index a238914d1f0..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseRepository3.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface DatabaseRepository3 { - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - DatabaseServiceDAO3 dbServiceDAO(); - - @CreateSqlObject - UsageDAO3 usageDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseServiceRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseServiceRepository3.java deleted file mode 100644 index fbff1023339..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/DatabaseServiceRepository3.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface DatabaseServiceRepository3 { - @CreateSqlObject - DatabaseServiceDAO3 dbServiceDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); -} \ No newline at end of file diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/FeedRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/FeedRepository3.java deleted file mode 100644 index 6382f9170cd..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/FeedRepository3.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface FeedRepository3 { - @CreateSqlObject - FeedDAO3 feedDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - FieldRelationshipDAO3 fieldRelationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - MetricsDAO3 metricsDAO(); - - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - ReportDAO3 reportDAO(); - - @CreateSqlObject - TopicDAO3 topicDAO(); - - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - PipelineDAO3 pipelineDAO(); - - @CreateSqlObject - ModelDAO3 modelDAO(); -} \ No newline at end of file diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/LineageRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/LineageRepository3.java deleted file mode 100644 index 67301dfb8a6..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/LineageRepository3.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface LineageRepository3 { - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - MetricsDAO3 metricsDAO(); - - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - ReportDAO3 reportDAO(); - - @CreateSqlObject - TopicDAO3 topicDAO(); - - @CreateSqlObject - ChartDAO3 chartDAO(); - - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - PipelineDAO3 pipelineDAO(); - - @CreateSqlObject - ModelDAO3 modelDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MessagingServiceRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MessagingServiceRepository3.java deleted file mode 100644 index 566b53eda5d..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MessagingServiceRepository3.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface MessagingServiceRepository3 { - @CreateSqlObject - MessagingServiceDAO3 messagingServiceDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); -} \ No newline at end of file diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MetricsRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MetricsRepository3.java deleted file mode 100644 index 8d6912681ed..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/MetricsRepository3.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface MetricsRepository3 { - @CreateSqlObject - MetricsDAO3 metricsDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); - - @CreateSqlObject - UsageDAO3 usageDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ModelRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ModelRepository3.java deleted file mode 100644 index 1412cb298bb..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ModelRepository3.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface ModelRepository3 { - @CreateSqlObject - ModelDAO3 modelDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - UsageDAO3 usageDAO(); - - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineRepository3.java deleted file mode 100644 index 0a4e73dee44..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineRepository3.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface PipelineRepository3 { - @CreateSqlObject - PipelineDAO3 pipelineDAO(); - - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - PipelineServiceDAO3 pipelineServiceDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineServiceRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineServiceRepository3.java deleted file mode 100644 index 806ef1128ea..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/PipelineServiceRepository3.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface PipelineServiceRepository3 { - @CreateSqlObject - PipelineServiceDAO3 pipelineServiceDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); -} \ No newline at end of file diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ReportRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ReportRepository3.java deleted file mode 100644 index 8b9a7ad39ea..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/ReportRepository3.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface ReportRepository3 { - @CreateSqlObject - ReportDAO3 reportDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - UsageDAO3 usageDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TableRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TableRepository3.java deleted file mode 100644 index 1c971690876..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TableRepository3.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface TableRepository3 { - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - FieldRelationshipDAO3 fieldRelationshipDAO(); - - @CreateSqlObject - EntityExtensionDAO3 entityExtensionDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); - - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - UsageDAO3 usageDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TagRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TagRepository3.java deleted file mode 100644 index aba18b7ae68..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TagRepository3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface TagRepository3 { - @CreateSqlObject - TagDAO tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TaskRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TaskRepository3.java deleted file mode 100644 index 3a9c1100d0a..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TaskRepository3.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface TaskRepository3 { - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - PipelineServiceDAO3 pipelineServiceDAO(); - - @CreateSqlObject - TagDAO3 tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TeamRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TeamRepository3.java deleted file mode 100644 index 9a1267810d1..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TeamRepository3.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface TeamRepository3 { - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - MetricsDAO3 metricsDAO(); - - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - ReportDAO3 reportDAO(); - - @CreateSqlObject - TopicDAO3 topicDAO(); - - @CreateSqlObject - ChartDAO3 chartDAO(); - - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - PipelineDAO3 pipelineDAO(); - - @CreateSqlObject - ModelDAO3 modelDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TopicRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TopicRepository3.java deleted file mode 100644 index db173d3a52f..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/TopicRepository3.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface TopicRepository3 { - @CreateSqlObject - abstract TopicDAO3 topicDAO(); - - @CreateSqlObject - abstract EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - abstract UserDAO3 userDAO(); - - @CreateSqlObject - abstract TeamDAO3 teamDAO(); - - @CreateSqlObject - abstract MessagingServiceDAO3 messageServiceDAO(); - - @CreateSqlObject - abstract TagDAO3 tagDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UsageRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UsageRepository3.java deleted file mode 100644 index 462c708016f..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UsageRepository3.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface UsageRepository3 { - @CreateSqlObject - UsageDAO3 usageDAO(); - - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - MetricsDAO3 metricsDAO(); - - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - ReportDAO3 reportDAO(); - - @CreateSqlObject - TopicDAO3 topicDAO(); - - @CreateSqlObject - ChartDAO3 chartDAO(); - - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - PipelineDAO3 pipelineDAO(); - - @CreateSqlObject - ModelDAO3 modelDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UserRepository3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UserRepository3.java deleted file mode 100644 index 3de53c2d287..00000000000 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/jdbi3/UserRepository3.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openmetadata.catalog.jdbi3; - -import org.jdbi.v3.sqlobject.CreateSqlObject; - -public interface UserRepository3 { - @CreateSqlObject - UserDAO3 userDAO(); - - @CreateSqlObject - EntityRelationshipDAO3 relationshipDAO(); - - @CreateSqlObject - TeamDAO3 teamDAO(); - - @CreateSqlObject - TableDAO3 tableDAO(); - - @CreateSqlObject - DatabaseDAO3 databaseDAO(); - - @CreateSqlObject - MetricsDAO3 metricsDAO(); - - @CreateSqlObject - DashboardDAO3 dashboardDAO(); - - @CreateSqlObject - ReportDAO3 reportDAO(); - - @CreateSqlObject - TopicDAO3 topicDAO(); - - @CreateSqlObject - ChartDAO3 chartDAO(); - - @CreateSqlObject - TaskDAO3 taskDAO(); - - @CreateSqlObject - PipelineDAO3 pipelineDAO(); - - @CreateSqlObject - ModelDAO3 modelDAO(); -} diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java index 0597e61ae92..2820b59be2f 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java @@ -105,7 +105,7 @@ public class ChartResource { @Inject public ChartResource(CollectionDAO dao, CatalogAuthorizer authorizer) { - Objects.requireNonNull(dao, "ChartRepository3 must not be null"); + Objects.requireNonNull(dao, "CollectionDAO must not be null"); this.dao = new ChartRepositoryHelper(dao); this.authorizer = authorizer; } diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/DatabaseResource.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/DatabaseResource.java index 6fe914933a8..f2220c0f34a 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/DatabaseResource.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/DatabaseResource.java @@ -108,7 +108,7 @@ public class DatabaseResource { @Inject public DatabaseResource(CollectionDAO dao, CatalogAuthorizer authorizer) { - Objects.requireNonNull(dao, "DatabaseRepository3 must not be null"); + Objects.requireNonNull(dao, "CollectionDAO must not be null"); this.dao = new DatabaseRepositoryHelper(dao); this.authorizer = authorizer; } diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/TableResource.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/TableResource.java index 306799104a9..05fd8a8171b 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/TableResource.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/databases/TableResource.java @@ -29,7 +29,6 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse; import org.openmetadata.catalog.api.data.CreateTable; import org.openmetadata.catalog.entity.data.Table; import org.openmetadata.catalog.jdbi3.CollectionDAO; -import org.openmetadata.catalog.jdbi3.TableRepository3; import org.openmetadata.catalog.jdbi3.TableRepositoryHelper; import org.openmetadata.catalog.resources.Collection; import org.openmetadata.catalog.security.CatalogAuthorizer; @@ -104,7 +103,7 @@ public class TableResource { @Inject public TableResource(CollectionDAO dao, CatalogAuthorizer authorizer) { - Objects.requireNonNull(dao, "TableRepository3 must not be null"); + Objects.requireNonNull(dao, "CollectionDAO must not be null"); this.dao = new TableRepositoryHelper(dao); this.authorizer = authorizer; } diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/models/ModelResource.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/models/ModelResource.java index b1bfe6a707a..8dea3d42164 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/models/ModelResource.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/models/ModelResource.java @@ -30,6 +30,7 @@ import org.openmetadata.catalog.api.data.CreateModel; import org.openmetadata.catalog.entity.data.Model; import org.openmetadata.catalog.jdbi3.CollectionDAO; import org.openmetadata.catalog.jdbi3.ModelRepositoryHelper; +import org.openmetadata.catalog.resources.Collection; import org.openmetadata.catalog.security.CatalogAuthorizer; import org.openmetadata.catalog.security.SecurityUtil; import org.openmetadata.catalog.type.EntityReference; @@ -75,7 +76,7 @@ import java.util.UUID; @Api(value = "Models collection", tags = "Models collection") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) -//@Collection(name = "models", repositoryClass = "org.openmetadata.catalog.jdbi3.ModelRepositoryHelper") +@Collection(name = "models") public class ModelResource { public static final String MODEL_COLLECTION_PATH = "v1/models/"; private final ModelRepositoryHelper dao; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/topics/TopicResource.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/topics/TopicResource.java index a5403eac56b..5d6085b7d16 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/topics/TopicResource.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/topics/TopicResource.java @@ -103,7 +103,7 @@ public class TopicResource { @Inject public TopicResource(CollectionDAO dao, CatalogAuthorizer authorizer) { - Objects.requireNonNull(dao, "TopicRepository3 must not be null"); + Objects.requireNonNull(dao, "CollectionDAO must not be null"); this.dao = new TopicRepositoryHelper(dao); this.authorizer = authorizer; } diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/security/DefaultCatalogAuthorizer.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/security/DefaultCatalogAuthorizer.java index af24d07fcf7..f5f4d80aeaf 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/security/DefaultCatalogAuthorizer.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/security/DefaultCatalogAuthorizer.java @@ -23,7 +23,6 @@ import org.openmetadata.catalog.entity.teams.User; import org.openmetadata.catalog.exception.DuplicateEntityException; import org.openmetadata.catalog.exception.EntityNotFoundException; import org.openmetadata.catalog.jdbi3.CollectionDAO; -import org.openmetadata.catalog.jdbi3.UserRepository3; import org.openmetadata.catalog.jdbi3.UserRepositoryHelper; import org.openmetadata.catalog.type.EntityReference; import org.openmetadata.catalog.util.EntityUtil; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/EntityUpdater3.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/EntityUpdater3.java index 746aea975ce..4a3013517c7 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/EntityUpdater3.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/EntityUpdater3.java @@ -2,7 +2,6 @@ package org.openmetadata.catalog.util; import org.openmetadata.catalog.Entity; import org.openmetadata.catalog.jdbi3.EntityRelationshipDAO3; -import org.openmetadata.catalog.jdbi3.TableRepository3; import org.openmetadata.catalog.jdbi3.TagDAO3; import org.openmetadata.catalog.type.EntityReference; import org.slf4j.Logger; @@ -22,7 +21,7 @@ import java.util.List; * of the entity. * * Concrete implementations need to implement update for other fields. See - * {@link TableRepository3.TableUpdater} for an example implementation. + * {@link org.openmetadata.catalog.jdbi3.TableRepositoryHelper.TableUpdater} for an example implementation. */ public abstract class EntityUpdater3 { private static final Logger LOG = LoggerFactory.getLogger(EntityUpdater3.class);