If you're using SQL Maps 2.0, then here's what you want to do (in
order of importance):
如果你项用SQL Maps2.0,那么下面就是你要作的
1. Ensure you've specified a parameterMap or parameterClass attribute
on your statement.
1,确保在在你的statement里描述了parameterMap或parameterClass
2. Use an explicitly defined <resultMap> and DON'T allow remapping of
results (new 2.0.9 feature)
2,用一个显示的定义<resultMap>并且不要允许重映射一个结果。
3. Use a Java``Bean (not a Map or XML etc.)
3,用JavaBean,不要用Map或xml等。
4. Make sure all of your properties are "simple properties" (no
dot.notation, array[] access or mixed bean/map properties).
4,确保所有你的属性是简单属性,不是点号格开,数组下表访问或混合bean、map属性。
5. Try enabling bytecode enhancement in your <settings> element.
5,在<setting>元素打开bytcode enhancement