Hi,

i'm trying to develop some ejb app using openejb 0.9.2 but i'm having some trouble using the one-to-many relationship. I'd like to create some kind of log whenever any object changes, for that i've an entity object called AuditingBean, and i'd like instantiate one whenever i create any other object.

For that i try to create it in the ejbCreate() method of the all other objects, the problem is that the AuditingBean ejbCreate looks like this: ejbCreate(UserBean user), i set the UserBean with the parameter value, but i always get an exception, because, the database user_id field value that opnejeb tryed to insert is null, instead of the id from UserBean...

Where can i find any CMP samples that have relationShips with tables? the CMP example only had one table, so i can' figure out what i'm doing wrong...

Thanks,
Paulo Lopes

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




Reply via email to