[jboss-user] [EJB 3.0] - executeUpdate and CascadeType issue

tzablock do-not-reply at jboss.com
Sat Sep 2 13:13:14 EDT 2006


Hi all

Here is what I've discovered, maybe it can be considered a bug.

I have @OneToMany annotation with CascadeType.ALL attribute specified. If I use EntityManager.remove on the entity everything seems to work fine. If I use Query.executeUpdate delete than the foreign key constraint is violated. The cascade doesn't work.

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

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



More information about the jboss-user mailing list