关于iBATIS中传递带有Map的bean对象疑问
各位大牛,我现在想传递一个bean对象作为参数,然后bean里面有个map的变量,将bean传递后,想在sql中取用map的key-value,不知道怎么取,请各位不吝赐教,谢谢!
select * from TEST where $Bean.map.columnName$ = #Bean.map.columnValue#
</select>
public class Bean{
private int id;
private Map map;
}
map.put("columnName","id");
map.put("columnValue","1");