Here's a patch to generate a more meanful error when reverse dbRelationship lookup failure occurs.
Here's an example of the message:
org.objectstyle.cayenne.CayenneRuntimeException: Unable to find reverse dbRelationship for dbRelationship paymentHistory on Entity PENDING_PAYMENT.
[queryUtils.diff]
This archive was generated by hypermail 2.0.0 : Mon Oct 06 2003 - 15:35:37 EDT