Hibernate will treat enabled field as boolean or Boolean? I found that it will be different base on the enviroment? If my jboss without other project run together it will treat it as Boolean, but if run wit jboss default jar and war there, it will run as boolean. Why? Is it because of one of the jar file?
Code:
@Column(nullable= false, name="enabled")
private Boolean enabled ;
private Boolean getEnabled() {
return enabled;
}
public boolean isEnabled() {
if (getEnabled()==null)
return false;
return getEnabled().booleanValue();
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}