Index: core-module/pom.xml
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- core-module/pom.xml (.../pom.xml) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ core-module/pom.xml (.../pom.xml) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -7,7 +7,7 @@
313devgrp
java-service-tree-framework-core-library
- 22.12.24
+ 22.12.25
../pom.xml
@@ -31,7 +31,7 @@
313devgrp
lib-module
- 22.12.24
+ 22.12.25
pom
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -21,7 +21,7 @@
}
protected abstract Class getEntityClass();
- protected Session getCurrentSession() {
+ public Session getCurrentSession() {
return getHibernateTemplate().getSessionFactory().getCurrentSession();
}
@@ -412,6 +412,19 @@
session.close();
}
+ public void saveUsingSession(Session session,T entity) {
+ session.setCacheMode(CacheMode.IGNORE);
+ Transaction tx = session.beginTransaction();
+
+ session.save(entity);
+
+ session.flush();
+ session.clear();
+
+ tx.commit();
+ session.close();
+ }
+
public T excute(HibernateCallback callback) {
return getHibernateTemplate().execute(callback);
}
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateDao.java
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateDao.java (.../JsTreeHibernateDao.java) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateDao.java (.../JsTreeHibernateDao.java) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -6,6 +6,7 @@
import java.util.Map;
import org.hibernate.LockMode;
+import org.hibernate.Session;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
@@ -17,6 +18,7 @@
public Class getClazz();
public void setClazz(Class clazzToSet);
+ public Session getCurrentSession();
public DetachedCriteria createDetachedCriteria(Class> clazz);
public DetachedCriteria createDetachedCriteria();
public T getUnique(Long id);
@@ -51,10 +53,10 @@
public void update(T transientObject);
public void merge(T transientObject);
public int bulkUpdate(String queryString, Object... value);
- public void flush();
public void delete(T persistentObject);
public void deleteAll(Collection entities);
public void bulkInsert(Collection entities);
+ public void saveUsingSession(Session session, T entity);
public T excute(HibernateCallback callback);
public List search(Map parameterMap);
public ID insert(T entity);
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateService.java
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateService.java (.../JsTreeHibernateService.java) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateService.java (.../JsTreeHibernateService.java) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -29,5 +29,4 @@
public T moveNode(T jsTreeHibernateDTO, HttpServletRequest request) throws Exception;
- public void flush() throws Exception;
}
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -33,11 +33,6 @@
@Resource(name = "jsTreeHibernateDao")
private JsTreeHibernateDao jsTreeHibernateDao;
- @Override
- public void flush() throws Exception {
- jsTreeHibernateDao.flush();
- }
-
@SuppressWarnings("unchecked")
@Override
public T getNode(T jsTreeHibernateDTO) throws Exception {
Index: lib-module/pom.xml
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- lib-module/pom.xml (.../pom.xml) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ lib-module/pom.xml (.../pom.xml) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -5,7 +5,7 @@
313devgrp
java-service-tree-framework-core-library
- 22.12.24
+ 22.12.25
../pom.xml
Index: pom.xml
===================================================================
diff -u -r784564cac28ace244f204a8bd1a2c9765cb4e8e8 -rad9c714b7989bb9fee2191b406ad97de2b80180a
--- pom.xml (.../pom.xml) (revision 784564cac28ace244f204a8bd1a2c9765cb4e8e8)
+++ pom.xml (.../pom.xml) (revision ad9c714b7989bb9fee2191b406ad97de2b80180a)
@@ -10,7 +10,7 @@
4.0.0
313devgrp
java-service-tree-framework-core-library
- 22.12.24
+ 22.12.25
pom
java-service-tree-framework-core-library