cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Relationship not set (NULL)
Date Wed, 13 Oct 2010 14:14:23 GMT
Hi Borut,

On Oct 13, 2010, at 12:02 PM, Borut BolĨina wrote:

> MapObjectType localMot = (MapObjectType)
> dataContext.localObject(mot.getObjectId(), mot);

Not sure if there's anything else involved, but the use of 'localObject' is suspect. Try using
null as the second argument:

MapObjectType localMot = (MapObjectType) dataContext.localObject(mot.getObjectId(), null);

This is a piece of less intuitive API in Cayenne. I really wish to replace it with something
more explicit...

Andrus


Mime
View raw message