"abronson" wrote : I am not sure what you mean by bulk operations.
|
| The cascade does not work if I do either of these:
|
| Query query = em.createQuery("delete from Parent where lastUpdated <
:deletePrior").setParameter("deletePrior", deletePrior);
| int updatedEntities = query.executeUpdate();
|
| or
|
| if I do
|
| Query query = em.createQuery("from Parent where lastUpdated <
:deletePrior").setParameter("deletePrior", deletePrior);
| List list = query.list();
|
| loop
| {
|
| em.remove( Parent Obj );
| }
|
| I get:
| cannot update ("SYSTEM"."CHILD"."LOCATIONID") to NULL;
|
|
|
| allan
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948517#3948517
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948517
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user