summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-widget-ms/widget-ms/src/main
diff options
context:
space:
mode:
authorSunder Tattavarada <statta@research.att.com>2020-07-31 02:45:20 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-31 02:45:20 +0000
commit7e7fa70c7485f2c302585c0443f3023c13b984d5 (patch)
tree0feb56fee609e13fe607affc2e7bc620758a88a8 /ecomp-portal-widget-ms/widget-ms/src/main
parente7a0c4cec1827c7e925c73a120495dc0cf5e2562 (diff)
parent78c73d16d270ff182057fb797631a270d13c3740 (diff)
Merge "Widget MS startup fix and Onboarding changes"
Diffstat (limited to 'ecomp-portal-widget-ms/widget-ms/src/main')
-rw-r--r--ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/service/impl/WidgetCatalogServiceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/service/impl/WidgetCatalogServiceImpl.java b/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/service/impl/WidgetCatalogServiceImpl.java
index 76ca31a8..d71356fb 100644
--- a/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/service/impl/WidgetCatalogServiceImpl.java
+++ b/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/service/impl/WidgetCatalogServiceImpl.java
@@ -154,6 +154,7 @@ public class WidgetCatalogServiceImpl implements WidgetCatalogService {
}
@Override
+ @Transactional
public void deleteWidgetCatalog(long widgetCatalogId) {
logger.debug("WidgetCatalogServiceImpl.deleteWidgetCatalog: deleting the widget with widgetId={}", widgetCatalogId);
WidgetCatalog widget = getWidgetCatalog(widgetCatalogId);
@@ -162,7 +163,7 @@ public class WidgetCatalogServiceImpl implements WidgetCatalogService {
return;
}
Session session = sessionFactory.getCurrentSession();
- Transaction tx = session.beginTransaction();
+ //Transaction tx = session.beginTransaction();
Query query = session.createSQLQuery("delete from ep_pers_user_widget_sel where widget_id = :widgetId ").setParameter("widgetId", widgetCatalogId);
query.executeUpdate();
query = session.createSQLQuery("delete from ep_pers_user_widget_placement where widget_id = :widgetId ").setParameter("widgetId", widgetCatalogId);
@@ -172,7 +173,7 @@ public class WidgetCatalogServiceImpl implements WidgetCatalogService {
query = session.createSQLQuery("delete from ep_widget_catalog_parameter where widget_id = :widgetId ").setParameter("widgetId", widgetCatalogId);
query.executeUpdate();
session.delete(widget);
- tx.commit();
+ //tx.commit();
}
@Override