3 Replies Latest reply on Nov 15, 2007 3:41 AM by sstrenn

    seam-gen entities: cascading bug or accepted behavior?



      When seam-gen generates an entity with a one-to-many association to another entity, it appears to always set the cascade attribute to CascadeType.ALL.

      My sense is that this is incorrect behavior when the foreign key's constraint in the database is set to ON DELETE RESTRICT.

      Is this an "undocumented feature", or an misunderstanding of the expected behavior on my part. If so, could you please give me a quick explanation of why CascadeType.ALL is correct when a foreign key's constraint is ON DELETE RESTRICT.