Can a relationship return null?

From: Todd O'Bryan (toddobrya..ac.com)
Date: Sat Dec 11 2004 - 23:46:49 EST

  • Next message: Todd O'Bryan: "Re: Can a relationship return null?"

    I have a rather convoluted relationship...

    A User maps to several Section objects, and each of these maps to
    several Forum objects. I created a forums relationship on User which is
    a chain from User to Section to a bridge table of Section and Forum
    ID's and then to Forum.

    When I call getSections() on User, it works fine.
    When I call getForums() on Section, it works fine.
    When I call getForums() on User, it returns null.

    Should a relationship *ever* return null, or should it just return an
    empty List if there's nothing in it?

    Todd

    P.S. Each of the three object entities is in a different
    DataMap...don't know if that makes a difference. I've also attached my
    xml files. Hopefully they'll make it to the list.










      



    This archive was generated by hypermail 2.0.0 : Sat Dec 11 2004 - 23:46:54 EST