2 Replies Latest reply on Oct 17, 2010 2:54 PM by Stefano Zaccaria

    EntityHome and flushmode.MANUAL

    Stefano Zaccaria Newbie

      Hello everyone,
      Today I met with a strange behavior of EntityHome.
      Infact, when I used it in manual flushmode mode ( annotating the create() method with


      @Begin(flushMode=FlushModeType.MANUAL)
      public void create() {
              super.create();
      }



      I do not reach the desired result.


      For example, if I persist the first time the entity ( with persist() method ) the next modification of the entity are serialized without I call the update() method... and this make me frustrated!!!


      I found with the debug.seam page, that the component org.jboss.seam.persistence.persistenceContexts in relation with that conversation has the flushMode set to AUTO... sigh!!!


      Nevertheless after read the post of good Dan Allen ( god bless this man :) !!! ) I put in the .page.xml the next code:


      <begin-conversation join="true" flush-mode="MANUAL"/>



      and work!!! I found that the persistenceContexts is set to MANUAL...


      So after spend few days in this trouble and found what appears to be a solution, I wonder if correct what I did...


      I have the impression that for some strange reason the annotation @Begin.... is not handled properly, I guess someone explain why?


      Thanks in advance