Index: .idea/libraries/Maven__log4j_log4j_1_2_17.xml =================================================================== diff -u --- .idea/libraries/Maven__log4j_log4j_1_2_17.xml (revision 0) +++ .idea/libraries/Maven__log4j_log4j_1_2_17.xml (revision f69cadfaf783dfd204efa66fed05a6a7b29ac9df) @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file Index: .idea/sonarIssues.xml =================================================================== diff -u -rc8171c0033762ec05750a14448a5142f78e0b492 -rf69cadfaf783dfd204efa66fed05a6a7b29ac9df --- .idea/sonarIssues.xml (.../sonarIssues.xml) (revision c8171c0033762ec05750a14448a5142f78e0b492) +++ .idea/sonarIssues.xml (.../sonarIssues.xml) (revision f69cadfaf783dfd204efa66fed05a6a7b29ac9df) @@ -1413,6 +1413,11 @@ + + + + + Index: standard/project/web/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java =================================================================== diff -u -r29fd864ddfe9ed46b56befbfdb21e46913b2043e -rf69cadfaf783dfd204efa66fed05a6a7b29ac9df --- standard/project/web/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision 29fd864ddfe9ed46b56befbfdb21e46913b2043e) +++ standard/project/web/src/main/java/egovframework/com/ext/jstree/springHibernate/core/dao/JsTreeHibernateAbstractDao.java (.../JsTreeHibernateAbstractDao.java) (revision f69cadfaf783dfd204efa66fed05a6a7b29ac9df) @@ -443,6 +443,9 @@ logger.error("no search instace class id"); } + if( null == value){ + throw new RuntimeException("getId value is null"); + } return Long.parseLong(value); } @@ -455,6 +458,9 @@ logger.error("no search instace class id"); } + if( null == value){ + throw new RuntimeException("getId value is null"); + } return Long.parseLong(value); } @@ -465,10 +471,18 @@ @SuppressWarnings("rawtypes") public List search(Map parameterMap) { Criteria criteria = getCurrentSession().createCriteria(getEntityClass()); - Set fieldName = parameterMap.keySet(); - for (String field : fieldName) { + + /* coveriry 처리. + Set fieldName = parameterMap.keySet(); + for (String field : fieldName) { criteria.add(Restrictions.ilike(field, parameterMap.get(field))); } + */ + + for (Map.Entry entry : parameterMap.entrySet()) { + criteria.add(Restrictions.ilike(entry.getKey(), entry.getValue())); + } + return criteria.list(); } @@ -477,7 +491,11 @@ } public void deleteById(ID id) { - delete(getByID(id)); + if(null != getByID(id)){ + delete(getByID(id)); + }else{ + throw new RuntimeException("getByID(id) is null"); + } } }