[jboss-user] [JBoss Seam] - Doing a batch update after a persist

SmokingAPipe do-not-reply at jboss.com
Tue Mar 20 04:15:06 EDT 2007


I'm getting a constraint violation exception.  Here's what's going on:

1. I create a new entity, and persist it, using the SMPC.

2. I then do a batch update: entityManager.createQuery().executeUpdate().  This query changes all the objects in a class to have a value that is the new entity that I persisted in step 1.  

I get a Postgres constraint violation at that point, saying that the entity with the ID that was persisted in step 1 cannot be found in the table.

It seems like it may be a Seam bug, or an EJB3 bug, or some bug in interacting with PG.  Any ideas on this?  Is there a work-around?

Thanks


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

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



More information about the jboss-user mailing list