0 Replies Latest reply on Jun 12, 2008 11:20 PM by Oliver Dohmen

    EntityHome is directly updating to the database

    Oliver Dohmen Newbie

      Hi,



      i´ve a problem in my current implementation. I inject a EntityHome in my Action class to have a clean interface to the web layer.


      When i set a field in the instance this is immediatly written to the database. This is not the expected behaviour!


      What´s wrong with my implementation. There is nothing special in the usage of the entity home.



      eh.getInstance().setComplete(false);
      eh.saveOrUpdate();



      These both lines result in two update statements. So,
      what´s wrong with it ?


      Cheers,
      Oliver