Damn it one more time, the code should be:
public void update() { for(Customer customer: customers) { //NOTE THE S in customers em.merge(customer) } }
I tried your code and I'm getting 16 rows in the dataTable on load.
It doesn't seem to be doing a join b/n the two tables and filtering by userid (like my solution is)...
Hmmm.
What annotation do you have for your bean class, and what annotations to do you have for your entityManager?