Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#38 Refactor @ejb:relation/@ejb:relationship

open
nobody
ejbdoclet (28)
3
2002-02-13
2002-02-13
Andy Stevens
No

@ejb:relation should be enhanced to also cater for BMP
entity beans, replacing the existing
@ejb:relationship. This would make it more flexible
(and easier to switch from using BMP to CMP).

Also, instead of having to specify the target's finder
method name for retrieving related collections, as is
currently necessary with @ejb:relationship, perhaps it
could be discovered automatically (e.g. by including
an @ejb:relation with matching name/role on the
relevant ejbFind?)

Discussion

  • Logged In: YES
    user_id=49846

    Consider generating BMPs with Middlegen. Middlegen has full
    knowledge about the table/field/relation structure, and can
    therefore be used to generate the method bodies for BMP
    relations.

    All we need to do is to write a new Middlegen template for
    BMPs. (It uses XDoclet's template engine, and tag handlers
    that contain info from the database meta data).

    Aslak