summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-widget-ms/widget-ms/src/main/java
diff options
context:
space:
mode:
authorjz385p <jegadeesh.babu@att.com>2020-07-30 22:16:02 +0530
committerJegadeesh Babu <jegadeesh.babu@att.com>2020-07-30 16:49:43 +0000
commit78c73d16d270ff182057fb797631a270d13c3740 (patch)
tree79e91627b06bde02970780c9c4359d85b7240798 /ecomp-portal-widget-ms/widget-ms/src/main/java
parent6410e19d3e12c158745c3c65bc7b3b98ffd4cac3 (diff)
Widget MS startup fix and Onboarding changes
Widget MS fix and Onboarding changes Issue-ID: PORTAL-962 Change-Id: I57d09345cf05d123fd3908360a00b8f2122d0ce9 Signed-off-by: jz385p <jegadeesh.babu@att.com>
Diffstat (limited to 'ecomp-portal-widget-ms/widget-ms/src/main/java')
-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 f5558e2e..4554ab51 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
@@ -156,6 +156,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);
@@ -164,7 +165,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);
@@ -174,7 +175,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