From 10e8eb4657c138ee0096f77f1824c355f35ad31e Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 9 Aug 2007 14:37:53 +0000 Subject: [PATCH] updated to use flow scope polish --- .../HibernateFlowExecutionListener.java | 49 ++++++++++++------- .../persistence/JpaFlowExecutionListener.java | 39 +++++++++------ .../HibernateFlowExecutionListenerTests.java | 8 ++- .../JpaFlowExecutionListenerTests.java | 36 ++++++++++++++ 4 files changed, 97 insertions(+), 35 deletions(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/support/persistence/HibernateFlowExecutionListener.java b/spring-webflow/src/main/java/org/springframework/webflow/support/persistence/HibernateFlowExecutionListener.java index 9589ddee..8cb56164 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/support/persistence/HibernateFlowExecutionListener.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/support/persistence/HibernateFlowExecutionListener.java @@ -26,6 +26,7 @@ import org.springframework.transaction.support.TransactionCallbackWithoutResult; import org.springframework.transaction.support.TransactionSynchronizationManager; import org.springframework.transaction.support.TransactionTemplate; import org.springframework.webflow.core.collection.AttributeMap; +import org.springframework.webflow.definition.FlowDefinition; import org.springframework.webflow.execution.FlowExecutionException; import org.springframework.webflow.execution.FlowExecutionListener; import org.springframework.webflow.execution.FlowExecutionListenerAdapter; @@ -34,11 +35,12 @@ import org.springframework.webflow.execution.RequestContext; import org.springframework.webflow.execution.ViewSelection; /** - * A {@link FlowExecutionListener} that implements the Session-per-Conversation pattern using the native Hibernate API. + * A {@link FlowExecutionListener} that implements the Flow Managed Persistence Context (FMPC) pattern using the native + * Hibernate API. *

* The general pattern is as follows: *