Index: core-module/pom.xml
===================================================================
diff -u -rf62c48668c61f06ef1d10f871b3bd6e684af2787 -rd343d90cda85cfd29a388ced70f33a1613123dec
--- core-module/pom.xml (.../pom.xml) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787)
+++ core-module/pom.xml (.../pom.xml) (revision d343d90cda85cfd29a388ced70f33a1613123dec)
@@ -7,7 +7,7 @@
313devgrp
java-service-tree-framework-core-library
- 23.02.13
+ 23.02.14
../pom.xml
@@ -31,7 +31,7 @@
313devgrp
lib-module
- 23.02.13
+ 23.02.14
pom
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java
===================================================================
diff -u -rf62c48668c61f06ef1d10f871b3bd6e684af2787 -rd343d90cda85cfd29a388ced70f33a1613123dec
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision d343d90cda85cfd29a388ced70f33a1613123dec)
@@ -385,19 +385,7 @@
}
public void update(T transientObject) {
-
- RouteTableInterceptor interceptor = new RouteTableInterceptor();
- Session session = getHibernateTemplate().getSessionFactory().withOptions()
- .interceptor(interceptor).openSession();
- session.setCacheMode(CacheMode.IGNORE);
- Transaction tx = session.beginTransaction();
-
- session.update(transientObject);
-
- tx.commit();
- session.close();
-
- //getHibernateTemplate().update(transientObject);
+ getHibernateTemplate().update(transientObject);
}
public void merge(T transientObject) {
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java
===================================================================
diff -u -rf62c48668c61f06ef1d10f871b3bd6e684af2787 -rd343d90cda85cfd29a388ced70f33a1613123dec
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision d343d90cda85cfd29a388ced70f33a1613123dec)
@@ -191,6 +191,8 @@
for (T perJsTreeHibernateDTO : updateTargetList) {
perJsTreeHibernateDTO.setC_right(perJsTreeHibernateDTO.getC_right() + spaceOfTargetNode);
try {
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perJsTreeHibernateDTO);
} catch (Exception e) {
System.out.println(e.getMessage());
@@ -218,6 +220,8 @@
for (T perJsTreeHibernateDTO : updateTargetList) {
perJsTreeHibernateDTO.setC_left(perJsTreeHibernateDTO.getC_left() + spaceOfTargetNode);
try {
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perJsTreeHibernateDTO);
} catch (Exception e) {
System.out.println(e.getMessage());
@@ -551,6 +555,9 @@
perEnterMyselfFixLeftRightList.setC_left(perEnterMyselfFixLeftRightList.getC_left() - idif);
perEnterMyselfFixLeftRightList.setC_right(perEnterMyselfFixLeftRightList.getC_right() - idif);
perEnterMyselfFixLeftRightList.setC_level(perEnterMyselfFixLeftRightList.getC_level() - ldif);
+
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perEnterMyselfFixLeftRightList);
}
}
@@ -589,7 +596,8 @@
}
node.setC_position(position);
-
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(node);
continue;
}
@@ -605,6 +613,8 @@
child.setFixCopyId(parentIds.get(child.getC_left()));
child.setC_parentid(parentIds.get(child.getC_left()));
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(child);
}
}
@@ -694,6 +704,8 @@
.getListWithoutPaging(detachedStretchPositionForMyselfCriteria);
for (T perStretchPositionForMyself : stretchPositionForMyselfList) {
perStretchPositionForMyself.setC_position(perStretchPositionForMyself.getC_position() + 1);
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perStretchPositionForMyself);
}
@@ -846,6 +858,8 @@
List childCutMyselfPositionFix = jsTreeHibernateDao.getListWithoutPaging(cutMyselfPositionFixCriteria);
for (T perNodeById : childCutMyselfPositionFix) {
perNodeById.setC_position(perNodeById.getC_position() - 1);
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perNodeById);
}
@@ -857,6 +871,8 @@
List childCutMyselfLeftFix = jsTreeHibernateDao.getListWithoutPaging(cutMyselfLeftFixCriteria);
for (T perCutMyselfLeftFix : childCutMyselfLeftFix) {
perCutMyselfLeftFix.setC_left(perCutMyselfLeftFix.getC_left() - spaceOfTargetNode);
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perCutMyselfLeftFix);
}
@@ -872,6 +888,8 @@
List childCutMyselfRightFix = jsTreeHibernateDao.getListWithoutPaging(cutMyselfRightFixCriteria);
for (T perCutMyselfRightFix : childCutMyselfRightFix) {
perCutMyselfRightFix.setC_right(perCutMyselfRightFix.getC_right() - spaceOfTargetNode);
+ RouteTableInterceptor interceptor = new RouteTableInterceptor();
+ jsTreeHibernateDao.getTempSessionFactory().withOptions().interceptor(interceptor);
jsTreeHibernateDao.update(perCutMyselfRightFix);
}
Index: lib-module/pom.xml
===================================================================
diff -u -rf62c48668c61f06ef1d10f871b3bd6e684af2787 -rd343d90cda85cfd29a388ced70f33a1613123dec
--- lib-module/pom.xml (.../pom.xml) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787)
+++ lib-module/pom.xml (.../pom.xml) (revision d343d90cda85cfd29a388ced70f33a1613123dec)
@@ -5,7 +5,7 @@
313devgrp
java-service-tree-framework-core-library
- 23.02.13
+ 23.02.14
../pom.xml
Index: pom.xml
===================================================================
diff -u -rf62c48668c61f06ef1d10f871b3bd6e684af2787 -rd343d90cda85cfd29a388ced70f33a1613123dec
--- pom.xml (.../pom.xml) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787)
+++ pom.xml (.../pom.xml) (revision d343d90cda85cfd29a388ced70f33a1613123dec)
@@ -10,7 +10,7 @@
4.0.0
313devgrp
java-service-tree-framework-core-library
- 23.02.13
+ 23.02.14
pom
java-service-tree-framework-core-library