Author: manaRH
Date: 2009-07-08 08:27:03 -0400 (Wed, 08 Jul 2009)
New Revision: 11258
Modified:
branches/enterprise/JBPAPP_5_0/examples/blog/src/actions/IndexerService.java
Log:
finished the back port of JBSEAM-4257
Modified: branches/enterprise/JBPAPP_5_0/examples/blog/src/actions/IndexerService.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/examples/blog/src/actions/IndexerService.java 2009-07-08
11:41:11 UTC (rev 11257)
+++
branches/enterprise/JBPAPP_5_0/examples/blog/src/actions/IndexerService.java 2009-07-08
12:27:03 UTC (rev 11258)
@@ -13,6 +13,7 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Startup;
+import org.jboss.seam.annotations.Transactional;
import domain.BlogEntry;
@@ -30,6 +31,7 @@
private FullTextEntityManager entityManager;
@Create
+ @Transactional
public void index() {
entityManager.purgeAll(BlogEntry.class);
List blogEntries = entityManager.createQuery("select be from BlogEntry
be").getResultList();
Show replies by date