entity manager to peristenceContext

This commit is contained in:
Keith Donald
2008-04-25 23:34:26 +00:00
parent ff33b67afc
commit 6612b8982d
2 changed files with 7 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
<view-state id="reviewBooking">
<transition on="confirm" to="bookingConfirmed">
<evaluate expression="entityManager.persist(booking)" />
<evaluate expression="persistenceContext.persist(booking)" />
</transition>
<transition on="revise" to="enterBookingDetails" />
<transition on="cancel" to="bookingCancelled" />

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
<secured attributes="ROLE_USER" />
@@ -20,7 +20,7 @@
<view-state id="reviewBooking" model="booking">
<transition on="confirm" to="bookingConfirmed">
<evaluate expression="entityManager.persist(booking)" />
<evaluate expression="persistenceContext.persist(booking)" />
</transition>
<transition on="revise" to="enterBookingDetails" />
<transition on="cancel" to="cancel" />
@@ -29,5 +29,5 @@
<end-state id="bookingConfirmed" commit="true" />
<end-state id="cancel"/>
</flow>