[jboss-user] [JBoss Seam] - Expert needed:getEntityManager().flush() ignored

KimLord do-not-reply at jboss.com
Sat Sep 15 19:03:58 EDT 2007


I have the following in an entityhome class and am finding that the flush does not cause the record to be written to the database.  The record gets written when the method ends.  I need the flush to work so that the other method called moveTempRecord() can do some post processing.


  | @In EntityManager entityManager;
  |         @Transactional
  |       public String persist() {
  |             log.info("Override persist");
  |             getEntityManager().joinTransaction();
  |             getEntityManager().persist( getInstance() );
  |             getEntityManager().flush();
  |             moveTempRecord();
  |             return "success";
  | 	}

Thanks for helping,
Kim

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084784#4084784

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084784



More information about the jboss-user mailing list