@Test void testPersistAggregate_ExplicitFlushModeOn() { testSubject.setForceFlushOnSave(true); testSubject.doSave(testSubject.load(aggregateId)); verify(mockEntityManager).persist(aggregate); verify(mockEntityManager).flush(); }
public void setForceFlushOnSave(boolean forceFlushOnSave) { this.forceFlushOnSave = forceFlushOnSave; }
GenericJpaRepository extends LockingRepository<T, AnnotatedAggregate<T>> { public void setForceFlushOnSave(boolean forceFlushOnSave) { this.forceFlushOnSave = forceFlushOnSave; } }
GenericJpaRepository extends LockingRepository<T, AnnotatedAggregate<T>> { public void setForceFlushOnSave(boolean forceFlushOnSave) { this.forceFlushOnSave = forceFlushOnSave; } protected  GenericJpaRepository(Builder<T> builder); }
GenericJpaRepository extends LockingRepository<T, AnnotatedAggregate<T>> { public void setForceFlushOnSave(boolean forceFlushOnSave) { this.forceFlushOnSave = forceFlushOnSave; } protected  GenericJpaRepository(Builder<T> builder); static Builder<T> builder(Class<T> aggregateType); void setForceFlushOnSave(boolean forceFlushOnSave); }
GenericJpaRepository extends LockingRepository<T, AnnotatedAggregate<T>> { public void setForceFlushOnSave(boolean forceFlushOnSave) { this.forceFlushOnSave = forceFlushOnSave; } protected  GenericJpaRepository(Builder<T> builder); static Builder<T> builder(Class<T> aggregateType); void setForceFlushOnSave(boolean forceFlushOnSave);  }