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.
You should submit more information than
"it doesn't work".
You will getter better answers if you
post your deployment descriptors, code snippets,
log, and jboss version in the CMP forum. But don't
overdo it, posting your entire server.log is just as
Mostly, vague posts like this get ignored.