Index: pom.xml =================================================================== diff -u -r3911d54c16bf3825fb98c081079f3ef456864b45 -r537a1c9a1f52e97beeea33b4d84ee9415a73a7ec --- pom.xml (.../pom.xml) (revision 3911d54c16bf3825fb98c081079f3ef456864b45) +++ pom.xml (.../pom.xml) (revision 537a1c9a1f52e97beeea33b4d84ee9415a73a7ec) @@ -10,7 +10,7 @@ 4.0.0 313devgrp java-service-tree-framework-backend-server - 22.07.25 + 22.07.26 pom java-service-tree-framework Index: web-module/pom.xml =================================================================== diff -u -r3911d54c16bf3825fb98c081079f3ef456864b45 -r537a1c9a1f52e97beeea33b4d84ee9415a73a7ec --- web-module/pom.xml (.../pom.xml) (revision 3911d54c16bf3825fb98c081079f3ef456864b45) +++ web-module/pom.xml (.../pom.xml) (revision 537a1c9a1f52e97beeea33b4d84ee9415a73a7ec) @@ -7,7 +7,7 @@ 313devgrp java-service-tree-framework-backend-server - 22.07.25 + 22.07.26 ../pom.xml Index: web-module/src/main/java/egovframework/api/arms/module_pdservice/controller/UserPdServiceController.java =================================================================== diff -u -r3911d54c16bf3825fb98c081079f3ef456864b45 -r537a1c9a1f52e97beeea33b4d84ee9415a73a7ec --- web-module/src/main/java/egovframework/api/arms/module_pdservice/controller/UserPdServiceController.java (.../UserPdServiceController.java) (revision 3911d54c16bf3825fb98c081079f3ef456864b45) +++ web-module/src/main/java/egovframework/api/arms/module_pdservice/controller/UserPdServiceController.java (.../UserPdServiceController.java) (revision 537a1c9a1f52e97beeea33b4d84ee9415a73a7ec) @@ -11,6 +11,7 @@ */ package egovframework.api.arms.module_pdservice.controller; +import egovframework.com.ext.jstree.springHibernate.core.validation.group.UpdateNode; import egovframework.com.utl.fcc.service.EgovFileUploadUtil; import egovframework.com.utl.fcc.service.EgovFormBasedFileVo; import lombok.extern.slf4j.Slf4j; @@ -20,8 +21,10 @@ import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.ui.ModelMap; import org.springframework.util.ObjectUtils; import org.springframework.validation.BindingResult; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; Index: web-module/src/main/java/egovframework/api/arms/module_pdservice/model/PdServiceDTO.java =================================================================== diff -u -r564aed4de8790496d949ca204ac04e09ebce1785 -r537a1c9a1f52e97beeea33b4d84ee9415a73a7ec --- web-module/src/main/java/egovframework/api/arms/module_pdservice/model/PdServiceDTO.java (.../PdServiceDTO.java) (revision 564aed4de8790496d949ca204ac04e09ebce1785) +++ web-module/src/main/java/egovframework/api/arms/module_pdservice/model/PdServiceDTO.java (.../PdServiceDTO.java) (revision 537a1c9a1f52e97beeea33b4d84ee9415a73a7ec) @@ -29,8 +29,6 @@ @SequenceGenerator(name = "JsTreeSequence", sequenceName = "S_ARMS_PDSERVICE", allocationSize = 1) public class PdServiceDTO extends JsTreeHibernateSearchDTO implements Serializable { - private static final long serialVersionUID = 1L; - public PdServiceDTO() { super(); } Index: web-module/src/main/java/egovframework/api/arms/module_pdservice/service/PdServiceImpl.java =================================================================== diff -u -r564aed4de8790496d949ca204ac04e09ebce1785 -r537a1c9a1f52e97beeea33b4d84ee9415a73a7ec --- web-module/src/main/java/egovframework/api/arms/module_pdservice/service/PdServiceImpl.java (.../PdServiceImpl.java) (revision 564aed4de8790496d949ca204ac04e09ebce1785) +++ web-module/src/main/java/egovframework/api/arms/module_pdservice/service/PdServiceImpl.java (.../PdServiceImpl.java) (revision 537a1c9a1f52e97beeea33b4d84ee9415a73a7ec) @@ -20,8 +20,10 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.ObjectUtils; import javax.annotation.Resource; +import java.lang.reflect.Field; @Service("pdService") public class PdServiceImpl extends JsTreeHibernateServiceImpl implements PdService{ @@ -38,9 +40,24 @@ jsTreeHibernateDao.setClazz(jsTreeHibernateDTO.getClass()); T alterTargetNode = (T) jsTreeHibernateDao.getUnique(jsTreeHibernateDTO.getC_id()); - alterTargetNode.setC_contents(jsTreeHibernateDTO.getC_contents()); + + for (Field field : jsTreeHibernateDTO.getClass().getDeclaredFields()) { + + field.setAccessible(true); + + Object value = field.get(jsTreeHibernateDTO); + + if (!ObjectUtils.isEmpty(value)) { + field.setAccessible(true); + field.set(alterTargetNode, value); + } + + } jsTreeHibernateDao.update(alterTargetNode); + + return 1; + } } \ No newline at end of file