1 Reply Latest reply on Jan 16, 2003 8:38 PM by adrian.brock

    cascade delete not performed for cmp bean w/ unknown primary

    jroselander

      I have an entity bean that uses CMP, but has no natural primary key. It participates in two CMRs. In each relationship, it is on the many side of a one-to-many relationship. Cascade delete is specified for both relationships. Because the bean has no natural primary key, the key is specified at deploy-time, and JBoss generates the key via its UUIDKeyGeneratorFactory.

      The problem is that the cascade delete never happens. I can see in the server log that JBoss is querying the database to find the entities that should be deleted, but no delete statements follow. I'm not sure if the problem is that no entities are found when they should be, or that the delete statement is simply never executed.

      Has anybody else seen this behavior? Please let me know if I should submit a bug report w/ a test case.