[seam-commits] Seam SVN: r12157 - tags/JBoss_Seam_2_2_1_CR1/examples/seambay/src/org/jboss/seam/example/seambay.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Mar 10 09:02:39 EST 2010
Author: manaRH
Date: 2010-03-10 09:02:38 -0500 (Wed, 10 Mar 2010)
New Revision: 12157
Modified:
tags/JBoss_Seam_2_2_1_CR1/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
Log:
ported JBSEAM-4563
Modified: tags/JBoss_Seam_2_2_1_CR1/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
===================================================================
--- tags/JBoss_Seam_2_2_1_CR1/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java 2010-03-10 13:35:31 UTC (rev 12156)
+++ tags/JBoss_Seam_2_2_1_CR1/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java 2010-03-10 14:02:38 UTC (rev 12157)
@@ -6,7 +6,6 @@
import java.util.List;
import javax.persistence.EntityManager;
-import javax.persistence.LockModeType;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.In;
@@ -34,7 +33,7 @@
@Begin(join = true)
public void placeBid()
- {
+ {
if (auction.getStatus() != Auction.STATUS_LIVE ||
auction.getEndDate().getTime() < System.currentTimeMillis())
{
@@ -87,7 +86,6 @@
bid.setAuction(entityManager.find(Auction.class, bid.getAuction().getAuctionId()));
}
- entityManager.lock(bid.getAuction(), LockModeType.WRITE);
entityManager.refresh(bid.getAuction());
if (bid.getAuction().getStatus() != Auction.STATUS_LIVE)
@@ -175,7 +173,6 @@
bid.getAuction().setBids(bid.getAuction().getBids() + 1);
entityManager.persist(bid);
- entityManager.flush();
if ("success".equals(outcome))
{
More information about the seam-commits
mailing list