myBatis
mybatis mapper id로 result type 가져오기
codinglog
2022. 7. 4. 15:28
MappedStatement mappedStatement = sqlSession.getConfiguration().getMappedStatement(s);
List<ResultMap> resultMaps = mappedStatement.getResultMaps();
ResultMap resultMap = resultMaps.get(0);
Class<?> type = resultMap.getType();
반응형