1 Reply Latest reply on Jul 15, 2002 1:46 PM by jswinth

    boolean accessor methods

    jazzatola

      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?