About relationship refresh.

yazmin georgina quintal <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <[email protected]>
Hi, We are using 4.0.B2 and found that object relationships are not refreshed. We have tried:
1. invalidateObjects(object): simple properties are refreshed from db, but relationShips remain untouched.2. RelationshipQuery: better, but only refresh entities already in the objectContext, does not requery db for new o deleted related entities.
This issue araised now that we begin using more than one running session of out app, where other stations can add or delete related entities to a common parent.
The workaround for now is not usuing object relationships but to requery related entities with manual ObjectSelect... this is not OO from the domain model's view point. 

Summary.
objectContext.invalidateObjects(parent) does not invalidate parent's relationships ...  so parent.getRelatedEntities() does not have the current state.

Does somebody has more info on this ?... does a more recent version invalidate full object graph ?.
Thanks.

Saludos.Atte. Ing. Juan Manuel Díaz LaraCel. 9932 293338

 Atte. Yazmín Georgina Quintal Moo 
Local 63 y 64 de Plaza de la Tecnología. Villahermosa, Tab. 
Tel 993 1311688 
Cel. 9932 493007
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.