Re: mandatory status for ObjRelationship?

From: Mike Kienenberger (mkienen..laska.net)
Date: Tue Aug 16 2005 - 18:01:38 EDT

  • Next message: Kevin Menard: "Re: mandatory status for ObjRelationship?"

    Mike Kienenberger <mkienen..laska.net> wrote:
    > Does anyone have the algorithm handy for determining if an ObjRelationship

    > can be null or not?
    >
    > It looks like I have to go to the DBRelationship, then check if the source

    > attribute is mandatory or not.
    >
    > Someone must have already done this (preferably in velocity templating
    code)
    > so I don't have to figure this out :)

    After reading my email, I decided it wasn't as bad as I expected :)

    For those who come after me, here it is :)

    #if (
    $rel.getDbRelationships().get(0).getSourceAttributes().iterator().next().isMandatory()
     )##



    This archive was generated by hypermail 2.0.0 : Tue Aug 16 2005 - 17:58:00 EDT