ok, cool. The updates worked for 3 different rows (6 cells total modified in
JSF). I verified with t-sql select to check updates were successfull.
only thing is I am seeing the following error(s) after submit:
14:19:23,918 INFO [CustomerAction] in getCustomers(): user.getUserId() = 4461
| 14:19:24,918 INFO [CustomerAction] in destroy()
| 14:19:38,573 INFO [CustomerAction] in getCustomers(): user.getUserId() =
4461
| 14:19:38,620 INFO [CustomerAction] in submit()
| 14:19:50,588 INFO [CustomerAction] in submit()
| 14:20:13,056 ERROR [SeamPhaseListener] uncaught exception
| java.lang.NullPointerException
| at
org.jboss.seam.jsf.AbstractSeamPhaseListener.afterPhase(AbstractSeamPhaseListener.java:157)
I will try to determine if your way of doing is better or not. this is the
submit() code:
Iterator it = myList.iterator();
|
| while (it.hasNext()) {
| Object[] result = (Object[])it.next();
| Customers customers = (Customers)result[0];
| em.merge(customers);
| CreditCard creditCard = (CreditCard)result[1];
| em.merge(creditCard);
| }
Is it possible to do it all in one transaction?? Isn't the above doing two
merges(updates) per row??
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092197#4092197
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092197
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user