3 Replies Latest reply on Apr 23, 2007 5:23 AM by Pete Muir

    EntityHome question

    Magnus Sandberg Novice


      I'm trying to "veto" an update in MyHome by overriding the update() method like this:

      public String update() {
       if(!valid()) {
       return null;
       return super.update();

      My problem here is that the "UPDATE" request to the database is issued even if ''super.update()'' never is called.

      Is there anyway to stop the "UPDATE" from being issued or do I have to solve this by not using the Home infrastructure ?