I came across this link which seems to be the same issue that I am facing.I have around 500 classes and most of these have boolean variables. It will be difficult for me to map each and every boolean variable in XML. Is there simpler way by which this can be done - maybe defining a generic custom converter which applies to all boolean variables and uses java reflection to perform the mapping?
EDIT:
Example Mapping:
Class A
private Boolean isPrimary;
public Boolean isPrimary() {
return isPrimary;
}
public void setPrimary(Boolean theIsPrimary) {
isPrimary = theIsPrimary;
}
Class B
protected java.lang.Boolean isPrimary;
public java.lang.Boolean isIsPrimary() {
return isPrimary;
}
public void setIsPrimary(java.lang.Boolean value) {
isPrimary = value;
}