Hello.
Read the documentation on flattened many-to-many relationship.
http://cwiki.apache.org/CAYDOC/cayennemodeler-flattened-
relationships.html
http://www.google.com/search?q=cayenne+flattened+relationship+site%
3Acwiki.apache.org
- Tore.
On Dec 10, 2006, at 18:59 , marco turchi wrote:
> Hi Marcin,
>
> I check my model, and now the xxx.map.xml is equal to your example.
> The new problem is inside Java.
> you wrote:
>
>> Entity e = getContext().newObject(Entity.class);
>> Name n getContext().newObject(Name.class);
>> e.addToNames(n);
>> getContext().commitChanges();
>
> but the method addToName does not accept a Name object, but a
> NameRelation
> object.
> Do you know where the error is?
>
> Thanks a lot
> Marco
>
>
This archive was generated by hypermail 2.0.0 : Mon Dec 11 2006 - 04:56:22 EST