-
1. Re: Discussion: FlushModeType.NONE ?
christian.bauer Sep 27, 2007 3:44 AM (in response to motte1979)Why not use FlushModeType.MANUAL and simply never call flush()?
-
2. Re: Discussion: FlushModeType.NONE ?
motte1979 Sep 27, 2007 4:14 AM (in response to motte1979)That is an option, yes. But this needs you to be sure that a flush is never called in your components ...
Just to ensure that a flush will be ignored ... -
3. Re: Discussion: FlushModeType.NONE ?
denis-karpov Sep 27, 2007 7:10 AM (in response to motte1979)FlushModeType.MANUAL does not help in every case.
I have tired to struggle with flushing. The only sure way now is to evict objects from persistent context.Session session = (Session) getEntityManager().getDelegate(); session.evict(obj);
-
4. Re: Discussion: FlushModeType.NONE ?
christian.bauer Sep 27, 2007 7:18 AM (in response to motte1979)FlushModeType.MANUAL does not help in every case.
And these cases are? I've been using it for 5 years and never had such a case. -
5. Re: Discussion: FlushModeType.NONE ? please help on defin
dreuzel Sep 27, 2007 8:57 AM (in response to motte1979)THere are 2 FlushModeTypes
import org.hibernate.annotations.flushmodeType
import javax.persistence.FlushmodeType
i'm trying @begin(Flushmode=FlushmodeType.Manual
both imports are bad
expect second but manual not defined
Please assist -
6. Re: Discussion: FlushModeType.NONE ?
fernando_jmt Sep 27, 2007 9:04 AM (in response to motte1979)org.jboss.seam.annotations.FlushModeType
@Begin(flushMode = FlushModeType.MANUAL) public String myaction() { .... }
-
7. Re: Discussion: FlushModeType.NONE ?
denis-karpov Sep 27, 2007 9:42 AM (in response to motte1979)Sorry that I didn't confirm my words. Right now I do not have sample.
As I remember when I go through a decision with drools. Even in "invalid" case, when I simply return to the edit page, flushing occurs any way .<decision name="validate"> <handler class="org.jboss.seam.drools.DroolsDecisionHandler"> <workingMemoryName>buyWorkingMemory</workingMemoryName> <assertObjects> <element>#{exchOrdHome.instance}</element> <element>#{facesMessages}</element> </assertObjects> </handler> <transition to="refresh"> <action expression="#{exchOrdHome.merge}" /> </transition> <transition name="invalid" to="edit"/> </decision>