If my POJO has a boolean property with the getter prefix 'is' LazyEntityContainer does not recognize the property and tires to cast the property as String.
Example
private boolean enabled;
public boolean isEnabled(){ return enabled; }
public void setEnabled(boolean enabled){ this.enabled = enabled; }
If my POJO has a boolean property with the getter prefix 'is' LazyEntityContainer does not recognize the property and tires to cast the property as String.
Example
private boolean enabled;
public boolean isEnabled(){ return enabled; } public void setEnabled(boolean enabled){ this.enabled = enabled; }
lazyEntityContainer.addContainerProperty("enabled", Boolean.class, "", false, true);
Workaround:
changing the prefix 'is' of the getter method for 'get'
private boolean enabled;
public boolean getEnabled(){ return enabled; } public void setEnabled(boolean enabled){ this.enabled = enabled; }
lazyEntityContainer.addContainerProperty("enabled", Boolean.class, "", false, true);
the default auto-generted method for a boolean property in Netbeans uses the 'is' prefix causing this bug.
It would be a good idea to accept both 'is' and 'get' prefix for a boolean property getter method.