Author: shane.bryzak(a)jboss.com
Date: 2010-03-10 08:16:38 -0500 (Wed, 10 Mar 2010)
New Revision: 12155
Modified:
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
Log:
fix exception in as6m2
Modified:
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
===================================================================
---
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java 2010-03-10
11:50:30 UTC (rev 12154)
+++
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java 2010-03-10
13:16:38 UTC (rev 12155)
@@ -34,7 +34,7 @@
@Begin(join = true)
public void placeBid()
- {
+ {
if (auction.getStatus() != Auction.STATUS_LIVE ||
auction.getEndDate().getTime() < System.currentTimeMillis())
{
@@ -87,7 +87,7 @@
bid.setAuction(entityManager.find(Auction.class,
bid.getAuction().getAuctionId()));
}
- entityManager.lock(bid.getAuction(), LockModeType.WRITE);
+ //entityManager.lock(bid.getAuction(), LockModeType.WRITE);
entityManager.refresh(bid.getAuction());
if (bid.getAuction().getStatus() != Auction.STATUS_LIVE)
@@ -175,7 +175,6 @@
bid.getAuction().setBids(bid.getAuction().getBids() + 1);
entityManager.persist(bid);
- entityManager.flush();
if ("success".equals(outcome))
{
Show replies by date