Re: Using SetDistinct()

From: Mike Kienenberger (mkienen..laska.net)
Date: Fri Nov 12 2004 - 17:15:42 EST

  • Next message: William Wong: "Re: Using SetDistinct()"

    Brian Plotner <BPLOTNE..ndependenthealth.com> wrote:
    > Do you have an alternative to the SetDistinct method to achieve a distinct
    result?

    It should work if you drop the ETL_MAP_NME_KEY column from the results
    returned.

    I don't know enough about how you're creating the query to say the best
    method for that.

    You might look at using an SQLTemplate. A lot of cayenne users are using
    them, but I haven't needed to do so yet.

    http://www.objectstyle.org/cayenne/userguide/fetch/sqltemplate.html

    Another possibility is to remove the object attribute mapping to
    ETL_MAP_NME_KEY from your ObjEntity (if that's how you're currently fetching
    it).

    -Mike



    This archive was generated by hypermail 2.0.0 : Fri Nov 12 2004 - 17:13:36 EST