Fix no transaction is in progress bug
[usecase-ui/server.git] / server / src / main / java / org / onap / usecaseui / server / service / impl / PerformanceInformationServiceImpl.java
index 34a7dec..0cc9919 100755 (executable)
@@ -59,9 +59,7 @@ public class PerformanceInformationServiceImpl implements PerformanceInformation
                try {\r
                        if (null == performanceInformation) {\r
                        }\r
-                       Transaction tx = session.beginTransaction();\r
                        session.save(performanceInformation);\r
-                       tx.commit();\r
                        session.flush();\r
                        return "1";\r
                } catch (Exception e) {\r
@@ -77,9 +75,7 @@ public class PerformanceInformationServiceImpl implements PerformanceInformation
                        if (null == performanceInformation) {\r
                        }\r
                        logger.info("PerformanceInformationServiceImpl updatePerformanceInformation: performanceInformation={}", performanceInformation);\r
-                       Transaction tx = session.beginTransaction();\r
                        session.update(performanceInformation);\r
-                       tx.commit();\r
                        session.flush();\r
                        return "1";\r
                } catch (Exception e) {\r