Hi list,

We have been doing some prototypes using Castor JDO for our persistence
manager in EJB Container (JBoss). Is there a way to make Castor enforce
foreign key integrity? Let me exaplain it a little bit more.

Say I have two classes, Account and Branch. In the Account class I would
have a field called branchId to identify the Branch. branchId is just in
int.

Is it possible to define (somewhere in the mapping.xml perhaps) where
each Account saved must have a valid branchId? Or do I have to do all
the checkings manually by myself?

Thanks in advance.

Regards,  

-- 
Victor Hadianto

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to