iBatis 2.3 mapping
Доброе время суток.
У меня возник вопрос по использованию Map с ArrayList в sql запросах в iBATIS 2.3 версии.
Код java:
Код в xml:
По всем гайдам код такой должен работать. У меня же:
SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred while applying a parameter map. --- Check the getKudReportItemList-InlineParameterMap. --- Check the parameter mapping for the 'subdivs' property. --- Cause: java.lang.NullPointerException; nested exception is com.ibatis.common.jdbc.exception.NestedS QLException: --- The error occurred while applying a parameter map. --- Check the getKudReportItemList-InlineParameterMap. --- Check the parameter mapping for the 'subdivs' property. --- Cause: java.lang.NullPointerException
iBATIS вижу вторую неделю всего так что сильно не бейте если вопрос глупый, просто сроки горят.
У меня возник вопрос по использованию Map с ArrayList в sql запросах в iBATIS 2.3 версии.
Код java:
final Map map = new HashMap();
map.put("subdivs", new ArrayList());
return getSqlMapClientTemplate().queryForList(q ueryId, map);
Код в xml:
<statement id="getKudReportItemList" parameterClass="map" resultClass="kudReportItem">
...........
and k.idsubdivision in
<iterate property="subdivs" open="(" close=")" conjunction=",">
#subdivs[]#
</iterate>
</statement>
По всем гайдам код такой должен работать. У меня же:
SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred while applying a parameter map. --- Check the getKudReportItemList-InlineParameterMap.
iBATIS вижу вторую неделю всего так что сильно не бейте если вопрос глупый, просто сроки горят.
