这个是DBunit的问题,1.8以上的版本才有这个问题!
只要修改User.java
/**
* @return Returns the enabled.
* @hibernate.property column="enabled"
*/
public Boolean getEnabled() {
// isEnabled doesnt' work for copying properties to Struts ActionForms
return enabled;
}
修改成
/**
* @return Returns the enabled.
* @hibernate.property column="enabled" type="yes_no"
*/
public Boolean getEnabled() {
// isEnabled doesnt' work for copying properties to Struts ActionForms
return enabled;
}
就加了这一点,就可以了,
到底为什么我也不晓得!
只要修改User.java
/**
* @return Returns the enabled.
* @hibernate.property column="enabled"
*/
public Boolean getEnabled() {
// isEnabled doesnt' work for copying properties to Struts ActionForms
return enabled;
}
修改成
/**
* @return Returns the enabled.
* @hibernate.property column="enabled" type="yes_no"
*/
public Boolean getEnabled() {
// isEnabled doesnt' work for copying properties to Struts ActionForms
return enabled;
}
就加了这一点,就可以了,
到底为什么我也不晓得!