On Mon, Jul 07, 2003 at 12:38:17PM -0400, tek1 wrote:
> Hi Paulo.
>
> Are you using Castor or Entity Bean CMP for your persistence?
>
Both. OpenEJB uses Castor JDO for CMP persistence, so all your Castor persistable
objects are usable as Entity EJBs. You setup a database.xml for the CMP container and
mappings for all your CMPs. OQL is used for find* methods.
> >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
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev