cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <hal...@pvv.ntnu.no>
Subject Re: many to many relation
Date Mon, 11 Dec 2006 09:55:37 GMT
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
>
>


Mime
View raw message