IBatis uses set for resultMap and also parameterMap
I want to pass a rowset in an iBatis query for a parameter map, and also return a rowset for a result set.
Is it possible?
Request examples ...
SELECT * FROM some_table t WHERE t.some_column IN (values);
UPDATE some_table t SET t.some_column = 'some_value' WHERE t.other_column IN (values);
Walter
There SqlMapClientTemplate
is a method to return to queryForList
.
With regard to the setting Set
of String
as a parameter, I do not know if it handles iBatis; we built an object for this, and when I ran into this problem it was in the sql expression in
, so I did a comma separated values loop.
Or you can convert Set
to HashMap
and pass this.
a source to share