Hi Paulo.

Are you using Castor or Entity Bean CMP for your persistence?

The articles listed here:

http://castor.exolab.org/presentations.html

and here:

http://www.brainopolis.com/castorwiki/Wiki.jsp?page=Articles

should help with Castor.

If you're using Entity Bean CMP, then you might want to check Sun's website for the J2EE/EJB tutorial.




On Mon, Jul 07, 2003 at 04:21:42PM +0100, Paulo Lopes wrote:
> 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