Index: standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AdminMenuController.java =================================================================== diff -u -r719cc312c906a7f758f977c425a7983e27d7a746 -r4c3352ce783517fd14f80d01204c6f1486c723fd --- standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AdminMenuController.java (.../AdminMenuController.java) (revision 719cc312c906a7f758f977c425a7983e27d7a746) +++ standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AdminMenuController.java (.../AdminMenuController.java) (revision 4c3352ce783517fd14f80d01204c6f1486c723fd) @@ -24,6 +24,7 @@ import javax.servlet.http.HttpServletRequest; import java.util.HashSet; +import java.util.Set; @Controller @RequestMapping(value = {"/api/rivalWar/ROLE_ADMIN/menu"}) @@ -110,19 +111,12 @@ if(targetMenuNode.getDirectChatDTOs().size() > 0){ - final HashSet dummyChatDTOs = new HashSet(); - targetMenuNode.setDirectChatDTOs(dummyChatDTOs); - menuService.alterNode(targetMenuNode); - - HashSet targetChatDTOs = (HashSet) targetMenuNode.getDirectChatDTOs(); + Set targetChatDTOs = targetMenuNode.getDirectChatDTOs(); for (DirectChatDTO loopChatDTO :targetChatDTOs) { directChatService.removeNode(loopChatDTO); } } - - - jsTreeHibernateDTO.setStatus(menuService.removeNode(targetMenuNode)); setJsonDefaultSetting(jsTreeHibernateDTO); Index: standard/project/web/src/main/java/egovframework/api/rivalWar/menu/vo/MenuDTO.java =================================================================== diff -u -r6002d2a87002bdc63bed63cadcca70734e7158dd -r4c3352ce783517fd14f80d01204c6f1486c723fd --- standard/project/web/src/main/java/egovframework/api/rivalWar/menu/vo/MenuDTO.java (.../MenuDTO.java) (revision 6002d2a87002bdc63bed63cadcca70734e7158dd) +++ standard/project/web/src/main/java/egovframework/api/rivalWar/menu/vo/MenuDTO.java (.../MenuDTO.java) (revision 4c3352ce783517fd14f80d01204c6f1486c723fd) @@ -152,7 +152,7 @@ @LazyCollection(LazyCollectionOption.FALSE) @JsonManagedReference - @OneToMany(cascade = CascadeType.ALL) + @OneToMany(fetch=FetchType.LAZY, orphanRemoval=false, cascade=CascadeType.PERSIST) @JoinTable( name = "T_M_MENU_DIRECTCHAT", joinColumns = @JoinColumn(name = "MENU_CID"),