有若干个参数,需要作为ibatis拼装sql的参数传入,但是有个参数的值比较特殊,是若干种枚举值。具体到这个case,就是有有限个namespace。我每次需要通过传入多个namespace来查询DB记录。
MapibatisParam = new HashMap ( );
ibatisParam.put( "keyA","valueA" );
Listlist = new ArrayList ( );
list.add( "namespace1" );
list.add( "namespace2" );
ibatisParam.put( "namespaces",list );