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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to