I have a boolean CMP field in my entity bean named 'enabled'. I'm expecting the interface accessor and mutator method signatures to be as follows:
public abstract boolean isEnabled();
public abstract void setEnabled(boolean enabled);
But JBoss doesn't seem to like this - deployment fails with the message 'Setter was found but, no getter was found for field: enabled'. Is the preferred way to specify a public abstract boolean getEnabled(); method instead?
EJB spec requires that all CMP fields have "get" and "set" methods. You cannot use "is" as unless you make it a wrapper around the "get".