我一直在使用dozerMapper,但是我遇到了这个问题。
public class RefDocuments implements Serializable {
private static final long serialVersionUID = 1218743406159472639L;
private String test;
public void setTest(String test) {
this.test = test;
}
public boolean isTest() {
if ("Y".equalsIgnoreCase(test) || "true".equalsIgnoreCase(test)) return true;
return false;
}
public String getTest() {
return test;
}
当我用持久类
映射时public class TestDocuments extends AbstractEntity implements Serializable {
private static final long serialVersionUID = -8113415903134966574L;
@Column(name = "TEST")
private String test;
}
我在测试时将测试视为null,但在实际持久对象中,我可以获取数据。