"evdelst" wrote : Easiest is to add the persons to a list you store in the bean. | | eg. | | private Person person; | | | | private List<Person> list=new ArrayList<Person>(); | | | | void add() { | | list.add(person); | | person = new Person(); | | ) | | Then in your commit method, iterate the list and call em.persist for each element. | No need to use Flushmode.manual for this kind of interaction. | Also, the transaction is tied to a single method call (= a good thing). | | Thanks for that, food for thought.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116167#4116167 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116167 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user