1 Reply Latest reply on Sep 2, 2006 1:15 PM by Max Rydahl Andersen

    executeUpdate and CascadeType issue

    Tomasz Zab?ocki Newbie

      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.