2 Replies Latest reply on Apr 10, 2007 6:08 AM by christian.bauer

    How to disable Auto Flushing ?

    denis-karpov

      Is there a consistent way to control FlushMode?

      I have tried this, but it does not do what i expected.
      persistence.xml

      ... <property name="hibernate.transaction.flush_before_completion" value="false"/> ...


      Yes. There is the annotation attribute
      @Begin(flushMode=MANUAL)
      , but not always you can use an annotations. For instance, if you start a conversation through <s:link> there is no such option.

      It is this code that partially works for me:
      PersistenceContexts.instance().changeFlushMode(FlushModeType.MANUAL);

      If i call this code somewhere in my home object it works. BUT when i use DROOLS node in my pageflow, flushing occur anyway.

      Can someone illumine me?
      How to disable auto flushing in seam?

      Thanks for your time.