我使用的是推土机,我不能从布尔映射到布尔。有什么问题吗?
映射xhtml
<field>
<a>test</a>
<b is-accessible="true" >test2</b>
</field>A类
private boolean test;
public boolean getTest(){
return test;
}乙级
private Boolean test2;
public boolean isTest2(){
return test2;
}发布于 2014-11-18 11:49:46
在dozer 5.4.0中,以下内容为我所用
<field>
<a is-accessible="true" get-method="isFoo">foo</a>
<b is-accessible="true" set-method="setFoo">foo</b>
</field>发布于 2014-02-11 09:59:35
根据Dozer上的文档,这应该是可能的:
数据类型转换由Dozer映射引擎自动执行。目前,Dozer支持以下类型的转换:(这些都是双向的)
你可以试试如果指定set-method和get-method有助于。
https://stackoverflow.com/questions/21697506
复制相似问题