Re: to-many & List

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Jun 03 2004 - 11:21:16 EDT

  • Next message: Bill Dudney: "Re: to-many & List"

    On Jun 3, 2004, at 10:54 AM, Bill Dudney wrote:

    > Hi All,
    >
    > Is there a way apart from a new template to specify the collection
    > class to use for to-many relationships. The code I've just generated
    > uses List and my interface specifies Collection.

    You'll need to customize the template for the getter method.

    I guess it is EOF influence, but Cayenne assumes that relationship is a
    list. I was planning to add an arbitrary Collection (and maybe even
    Map) support at some point, probably after 1.1. But at the moment
    nothing should prevent you from having all to-many getters return a
    Collection.

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Jun 03 2004 - 11:21:21 EDT