Hi Andrus,
Does Cayenne then assume some ordering or is it just the arbitrary
order that comes from the db? Is it possible for me to specify the
'order by' key?
Thanks!
-bd-
On Jun 3, 2004, at 9:21 AM, Andrus Adamchik wrote:
>
> 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 - 12:23:15 EDT