Index: core-module/pom.xml
===================================================================
diff -u -r40848643310db49b552b8a34c9f8ba9fe647ae7c -rf4caacf01ff74d4b34e9273ad9ce9769636ef81e
--- core-module/pom.xml (.../pom.xml) (revision 40848643310db49b552b8a34c9f8ba9fe647ae7c)
+++ core-module/pom.xml (.../pom.xml) (revision f4caacf01ff74d4b34e9273ad9ce9769636ef81e)
@@ -7,7 +7,7 @@
313devgrp
java-service-tree-framework-core-library
- 23.02.08
+ 23.02.09
../pom.xml
@@ -31,7 +31,7 @@
313devgrp
lib-module
- 23.02.08
+ 23.02.09
pom
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java
===================================================================
diff -u -r40848643310db49b552b8a34c9f8ba9fe647ae7c -rf4caacf01ff74d4b34e9273ad9ce9769636ef81e
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision 40848643310db49b552b8a34c9f8ba9fe647ae7c)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision f4caacf01ff74d4b34e9273ad9ce9769636ef81e)
@@ -195,6 +195,7 @@
try {
jsTreeHibernateDao.update(perJsTreeHibernateDTO);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
} catch (Exception e) {
System.out.println(e.getMessage());
}
@@ -224,6 +225,7 @@
try {
jsTreeHibernateDao.update(perJsTreeHibernateDTO);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
} catch (Exception e) {
System.out.println(e.getMessage());
}
@@ -284,6 +286,7 @@
perLeftFixJsTreeHibernateDTO.setC_left(perLeftFixJsTreeHibernateDTO.getC_left() - spaceOfTargetNode);
jsTreeHibernateDao.update(perLeftFixJsTreeHibernateDTO);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
DetachedCriteria detachedRemovedAfterRightFixCriteria = DetachedCriteria
@@ -297,6 +300,7 @@
perRightFixJsTreeHibernateDTO.setC_right(perRightFixJsTreeHibernateDTO.getC_right() - spaceOfTargetNode);
jsTreeHibernateDao.update(perRightFixJsTreeHibernateDTO);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
DetachedCriteria detachedRemovedAfterPositionFixCriteria = DetachedCriteria.forClass(jsTreeHibernateDTO
@@ -312,6 +316,7 @@
perPositionFixJsTreeHibernateDTO.setC_position(perPositionFixJsTreeHibernateDTO.getC_position() - 1);
jsTreeHibernateDao.update(perPositionFixJsTreeHibernateDTO);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
return 0;
}
@@ -339,6 +344,7 @@
}
jsTreeHibernateDao.update(alterTargetNode);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
return 1;
@@ -356,6 +362,7 @@
alterTargetNode.setFieldFromNewInstance(jsTreeHibernateDTO);
jsTreeHibernateDao.update(alterTargetNode);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
return 1;
}
@@ -379,11 +386,13 @@
nodeById.setC_type(jsTreeHibernateDTO.getC_type());
jsTreeHibernateDao.update(nodeById);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
} else if ("folder".equals(jsTreeHibernateDTO.getC_type())) {
nodeById.setC_type(jsTreeHibernateDTO.getC_type());
jsTreeHibernateDao.update(nodeById);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
return 1;
}
@@ -541,6 +550,7 @@
childEnterMyselfFixPosition.setC_position(c_position);
jsTreeHibernateDao.update(childEnterMyselfFixPosition);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
@SuppressWarnings("unchecked")
@@ -564,6 +574,7 @@
perEnterMyselfFixLeftRightList.setC_level(perEnterMyselfFixLeftRightList.getC_level() - ldif);
jsTreeHibernateDao.update(perEnterMyselfFixLeftRightList);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
}
}
@@ -603,6 +614,7 @@
jsTreeHibernateDao.update(node);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
continue;
}
@@ -618,6 +630,7 @@
child.setC_parentid(parentIds.get(child.getC_left()));
jsTreeHibernateDao.update(child);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
}
@@ -710,6 +723,7 @@
perStretchPositionForMyself.setC_position(perStretchPositionForMyself.getC_position() + 1);
jsTreeHibernateDao.update(perStretchPositionForMyself);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
}
@@ -839,6 +853,7 @@
perNodeById.setC_position(perNodeById.getC_position() - 1);
jsTreeHibernateDao.update(perNodeById);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
logger.info("-----------------------cutMyselfLeftFix-----------------------");
@@ -851,6 +866,7 @@
perCutMyselfLeftFix.setC_left(perCutMyselfLeftFix.getC_left() - spaceOfTargetNode);
jsTreeHibernateDao.update(perCutMyselfLeftFix);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
logger.info("-----------------------cutMyselfRightFix-----------------------");
@@ -867,6 +883,7 @@
perCutMyselfRightFix.setC_right(perCutMyselfRightFix.getC_right() - spaceOfTargetNode);
jsTreeHibernateDao.update(perCutMyselfRightFix);
jsTreeHibernateDao.getCurrentSession().flush();
+ jsTreeHibernateDao.getCurrentSession().close();
}
}
Index: lib-module/pom.xml
===================================================================
diff -u -r40848643310db49b552b8a34c9f8ba9fe647ae7c -rf4caacf01ff74d4b34e9273ad9ce9769636ef81e
--- lib-module/pom.xml (.../pom.xml) (revision 40848643310db49b552b8a34c9f8ba9fe647ae7c)
+++ lib-module/pom.xml (.../pom.xml) (revision f4caacf01ff74d4b34e9273ad9ce9769636ef81e)
@@ -5,7 +5,7 @@
313devgrp
java-service-tree-framework-core-library
- 23.02.08
+ 23.02.09
../pom.xml
Index: pom.xml
===================================================================
diff -u -r40848643310db49b552b8a34c9f8ba9fe647ae7c -rf4caacf01ff74d4b34e9273ad9ce9769636ef81e
--- pom.xml (.../pom.xml) (revision 40848643310db49b552b8a34c9f8ba9fe647ae7c)
+++ pom.xml (.../pom.xml) (revision f4caacf01ff74d4b34e9273ad9ce9769636ef81e)
@@ -10,7 +10,7 @@
4.0.0
313devgrp
java-service-tree-framework-core-library
- 23.02.08
+ 23.02.09
pom
java-service-tree-framework-core-library