【发布时间】:2014-02-11 09:14:02
【问题描述】:
我正在使用推土机,但无法从布尔值映射到布尔值。可能是什么问题?
映射xhtml
<field>
<a>test</a>
<b is-accessible="true" >test2</b>
</field>
甲类
private boolean test;
public boolean getTest(){
return test;
}
b类
private Boolean test2;
public boolean isTest2(){
return test2;
}
【问题讨论】:
-
有什么问题?你得到什么错误?
-
get...()vs.is...()- 我记得推土机对此很挑剔...... -
问题是映射对象填充后没有test2字段。