> Relations are damn complex.

Sometimes, it's hard to guess how hard some thing is. I really don't know
but believe you.

> Even with XDoclet. Have you tried
> http://boss.bekk.no/boss/middlegen/? You'll even find links
> to source that
> might answer your question.

This looks cool. Thanks.
As to my case, I have unidirection so I just made it many-to-many.

Thanks,
alex

>
> Aslak
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Alex Loubyansky
> > Sent: 13. desember 2002 12:48
> > To: Xdoclet-User (E-mail)
> > Cc: 'Michael Newcomb'
> > Subject: [Xdoclet-user] RE: one-to-many relation-table-mapping
> >
> >
> > Sorry, it's not important for unidirectional as I can safely make it
> > many-to-many but for bidirectional one-to-many it's a problem.
> >
> > Thanks,
> > alex
> >
> > >
> > > Hello guys,
> > >
> > > I need to use relation-table-mapping in one-to-many
> > > unidirectional relationship in JBoss.
> > > But it seems like it's not possible to generate with XDoclet1.2.
> > >
> > >    /**
> > >     * Account - Attachments one-to-many bidirectional
> > >     *
> > >     * @ejb.interface-method
> > >     * @ejb.relation
> > >     *    name="Account-Attachment"
> > >     *    role-name="Account-has-Attachments"
> > >     *    target-ejb="Attachment"
> > >     *    target-role-name="Attachment-belongsto-Account"
> > >     *    target-multiple="false"
> > >     * @jboss.relation-table
> > >     *    table-name="account_attachment"
> > >     *    create-table=${jboss.create.table}
> > >     *    remove-table=${jboss.remove.table}
> > >     *
> > >     * @jboss.relation
> > >     *    fk-constraint="false"
> > >     *    related-pk-field="attachmentId"
> > >     *    fk-column="attachmentId"
> > >     * @jboss.target-relation
> > >     *    fk-constraint="false"
> > >     *    related-pk-field="accountId"
> > >     *    fk-column="accountId"
> > >     */
> > >    public abstract Collection getAttachments();
> > >    public abstract void setAttachments();
> > >
> > > This will produce <foreign-key-mapping/> in jbosscmp-jdbc.xml.
> > > If I set target-multiple to true, then jbosscmp-jdbc.xml will
> > > be correct but ejb-jar.xml of course won't be.
> > >
> > > Any comments?
> > >
> > > Thanks,
> > > alex
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:
> > With Great Power, Comes Great Responsibility
> > Learn to use your power at OSDN's High Performance Computing Channel
> > http://hpc.devchannel.org/
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to