cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Getting null instead of the actual value
Date Fri, 16 Sep 2011 18:19:42 GMT
> but may cause duplication issues for addToY().

I hope it doesn't. But since I am trained to just set the rel in one direction, I may not
be aware of the issue.


On Sep 16, 2011, at 9:12 PM, Mike Kienenberger wrote:

> On Fri, Sep 16, 2011 at 4:22 AM, Christian Grobmeier
> <grobmeier@gmail.com> wrote:
>> userRoles.setUser(user);
>> userRoles.setRole(role);
>> user.addToUserRoles(userRoles);
>> role.addToRolesToJoin(userRoles);
> 
> Again, unless, you've specifically made both relationships
> unidirectional (the default is bidirectional), you are actually
> setting both sides of the relationship twice.   Not an issue for a
> SetX(), but may cause duplication issues for addToY().
> 


Mime
View raw message