Index: core-module/pom.xml =================================================================== diff -u -rd67f8892919609232bb884afb989fba0508e8b4d -rf62c48668c61f06ef1d10f871b3bd6e684af2787 --- core-module/pom.xml (.../pom.xml) (revision d67f8892919609232bb884afb989fba0508e8b4d) +++ core-module/pom.xml (.../pom.xml) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787) @@ -7,7 +7,7 @@ 313devgrp java-service-tree-framework-core-library - 23.02.12 + 23.02.13 ../pom.xml @@ -31,7 +31,7 @@ 313devgrp lib-module - 23.02.12 + 23.02.13 pom Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java =================================================================== diff -u -rd67f8892919609232bb884afb989fba0508e8b4d -rf62c48668c61f06ef1d10f871b3bd6e684af2787 --- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision d67f8892919609232bb884afb989fba0508e8b4d) +++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787) @@ -1,5 +1,6 @@ package egovframework.com.ext.jstree.springHibernate.core.dao; +import egovframework.com.ext.jstree.springHibernate.core.interceptor.RouteTableInterceptor; import egovframework.com.ext.jstree.springHibernate.core.vo.JsTreeHibernateSearchDTO; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.collections.CollectionUtils; @@ -384,7 +385,19 @@ } public void update(T transientObject) { - getHibernateTemplate().update(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); } public void merge(T transientObject) { Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/interceptor/RouteTableInterceptor.java =================================================================== diff -u -r921fce205bff055ec5a1d5522e17cc66c7aeadef -rf62c48668c61f06ef1d10f871b3bd6e684af2787 --- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/interceptor/RouteTableInterceptor.java (.../RouteTableInterceptor.java) (revision 921fce205bff055ec5a1d5522e17cc66c7aeadef) +++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/interceptor/RouteTableInterceptor.java (.../RouteTableInterceptor.java) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787) @@ -6,8 +6,9 @@ import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; +import java.io.Serializable; -public class RouteTableInterceptor extends EmptyInterceptor { +public class RouteTableInterceptor extends EmptyInterceptor{ private static final Logger logger = LoggerFactory.getLogger(RouteTableInterceptor.class); Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java =================================================================== diff -u -rd67f8892919609232bb884afb989fba0508e8b4d -rf62c48668c61f06ef1d10f871b3bd6e684af2787 --- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision d67f8892919609232bb884afb989fba0508e8b4d) +++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787) @@ -10,7 +10,6 @@ import org.apache.commons.lang.math.NumberUtils; import org.h2.util.StringUtils; import org.hibernate.CacheMode; -import org.hibernate.SessionBuilder; import org.hibernate.criterion.Criterion; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Order; @@ -192,10 +191,6 @@ for (T perJsTreeHibernateDTO : updateTargetList) { perJsTreeHibernateDTO.setC_right(perJsTreeHibernateDTO.getC_right() + spaceOfTargetNode); try { - RouteTableInterceptor interceptor = new RouteTableInterceptor(); - jsTreeHibernateDao.getTempSessionFactory().withOptions() - .interceptor(interceptor).openSession(); - jsTreeHibernateDao.update(perJsTreeHibernateDTO); } catch (Exception e) { System.out.println(e.getMessage()); @@ -223,10 +218,6 @@ for (T perJsTreeHibernateDTO : updateTargetList) { perJsTreeHibernateDTO.setC_left(perJsTreeHibernateDTO.getC_left() + spaceOfTargetNode); try { - RouteTableInterceptor interceptor = new RouteTableInterceptor(); - jsTreeHibernateDao.getTempSessionFactory().withOptions() - .interceptor(interceptor).openSession(); - jsTreeHibernateDao.update(perJsTreeHibernateDTO); } catch (Exception e) { System.out.println(e.getMessage()); @@ -560,11 +551,6 @@ 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).openSession(); - jsTreeHibernateDao.update(perEnterMyselfFixLeftRightList); } } @@ -604,9 +590,6 @@ node.setC_position(position); - RouteTableInterceptor interceptor = new RouteTableInterceptor(); - jsTreeHibernateDao.getTempSessionFactory().withOptions() - .interceptor(interceptor).openSession(); jsTreeHibernateDao.update(node); continue; } @@ -622,10 +605,6 @@ child.setFixCopyId(parentIds.get(child.getC_left())); child.setC_parentid(parentIds.get(child.getC_left())); - - RouteTableInterceptor interceptor = new RouteTableInterceptor(); - jsTreeHibernateDao.getTempSessionFactory().withOptions() - .interceptor(interceptor).openSession(); jsTreeHibernateDao.update(child); } } @@ -715,9 +694,6 @@ .getListWithoutPaging(detachedStretchPositionForMyselfCriteria); for (T perStretchPositionForMyself : stretchPositionForMyselfList) { perStretchPositionForMyself.setC_position(perStretchPositionForMyself.getC_position() + 1); - RouteTableInterceptor interceptor = new RouteTableInterceptor(); - jsTreeHibernateDao.getTempSessionFactory().withOptions() - .interceptor(interceptor).openSession(); jsTreeHibernateDao.update(perStretchPositionForMyself); } @@ -870,9 +846,6 @@ 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).openSession(); jsTreeHibernateDao.update(perNodeById); } @@ -884,9 +857,6 @@ 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).openSession(); jsTreeHibernateDao.update(perCutMyselfLeftFix); } @@ -902,9 +872,6 @@ 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).openSession(); jsTreeHibernateDao.update(perCutMyselfRightFix); } Index: lib-module/pom.xml =================================================================== diff -u -rd67f8892919609232bb884afb989fba0508e8b4d -rf62c48668c61f06ef1d10f871b3bd6e684af2787 --- lib-module/pom.xml (.../pom.xml) (revision d67f8892919609232bb884afb989fba0508e8b4d) +++ lib-module/pom.xml (.../pom.xml) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787) @@ -5,7 +5,7 @@ 313devgrp java-service-tree-framework-core-library - 23.02.12 + 23.02.13 ../pom.xml Index: pom.xml =================================================================== diff -u -rd67f8892919609232bb884afb989fba0508e8b4d -rf62c48668c61f06ef1d10f871b3bd6e684af2787 --- pom.xml (.../pom.xml) (revision d67f8892919609232bb884afb989fba0508e8b4d) +++ pom.xml (.../pom.xml) (revision f62c48668c61f06ef1d10f871b3bd6e684af2787) @@ -10,7 +10,7 @@ 4.0.0 313devgrp java-service-tree-framework-core-library - 23.02.12 + 23.02.13 pom java-service-tree-framework-core-library