ibatis의 결과가 java.util.Map 일 경우 Date 컬럼이 java.sql.Date로 처리된다. 그래서 데이터 변환에 java.sql.Date도 포함 시킨다.

This commit is contained in:
ParkSeongMin
2015-10-19 01:52:17 +00:00
parent f919246578
commit bef3bdaea7
2 changed files with 2 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ public abstract class NexacroConverterHelper {
nonPrimitiveTypeMap.put(String.class, String.class);
nonPrimitiveTypeMap.put(BigDecimal.class, BigDecimal.class);
nonPrimitiveTypeMap.put(Date.class, Date.class);
nonPrimitiveTypeMap.put(java.sql.Date.class, java.sql.Date.class); // used java.util.map in ibatis
Set<Class<?>> keySet = primitiveTypeWrapperMap.keySet();
for(Class<?> clazz: keySet) {

View File

@@ -145,7 +145,7 @@ public class NexacroHandlerMethodReturnValueHandler implements HandlerMethodRetu
responseView = getView();
}
} catch(Exception e) {
logger.error("Error handling return value. value"+returnValue+", e="+e +", message="+e.getMessage());
logger.error("Error handling return value. value"+returnValue+", e="+e +", message="+e.getMessage(), e);
throw e;
} finally {
sw.stop();