Assuming you're talking about persistent entity bean relationships, I don't
know of anything automatic (aside from persistence tools which cost money.)

For 1:1 relationships, you can store another entity bean's primary key in a
persistent field, and translate it into an EJBObject (via findByPrimaryKey)
when needed.  (You could persist EJBObject references to the database, but
that's not safe!)

For 1:n and n:m relationships, I think you have three options: 1. do it
manually in ejbLoad and ejbStore, 2. use Castor or a commercial persistence
manager, or 3. make each relation an entity bean in itself.

Does that answer your question?

Mike

----- Original Message -----
From: "storck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 28, 2001 7:13 AM
Subject: AW: AW: [JBoss-user] Relationships with JBoss 2.2.2 (EJB 1.1)


> But how are 1:1, 1:n, n:m relationships normaly managed in EJB 1.1
specialy
> with JBoss 2.2.2?
>
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Owen
> Gesendet: Freitag, 28. September 2001 13:43
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: [JBoss-user] Relationships with JBoss 2.2.2 (EJB 1.1)
>
>
> Another option is use something like Castor (which is open source) to
manage
> all
> your persistence; there's a Castor integration module in the 3rd party
> section on the
> JBoss site.
>
> hth
> Owen
>
>
> On 28 Sep 2001 at 13:20, storck wrote:
>
> > Does some opensource exists wich can help me ?
> >
> > -----Urspr�ngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Im Auftrag von Reynir
> > H�bner
> > Gesendet: Freitag, 28. September 2001 11:30
> > An: [EMAIL PROTECTED]
> > Betreff: RE: [JBoss-user] Relationships with JBoss 2.2.2 (EJB 1.1)
> >
> >
> > There is a package called persistancemanager from MVCSoft.
> >
> > you should maybe look into it...
> > www.mvcsoft.com
> >
> >
> > hope it helps
> > -r
> >
> > -----Original Message-----
> > From: storck [mailto:[EMAIL PROTECTED]]
> > Sent: 28. september 2001 09:12
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Relationships with JBoss 2.2.2 (EJB 1.1)
> >
> >
> > Hi,
> >
> > how do I manage 1:1, 1:n and n:m relationships with EJB 1.1 ?
> >
> > Does a common manager exists or ready solution?
> >
> > Thanks
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> --
> Owen Green
> Software Developer, Unique Interactive
> 50 Lisson St, London, NW1 5DF
> [EMAIL PROTECTED]
> http://www.uniqueinteractive.co.uk
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to