Context question

2010-10-14 Thread Mathias Clerc
Hello, I am making an evaluation of Cayenne and other frameworks. One of my test is the following : begin a set of operations make a select * on one table insert new element in that table make another select * on that table (see that new element along with the previous results) rollback make ano

Re: Relationship not set (NULL)

2010-10-14 Thread Andrus Adamchik
And I was about to start trying your code samples :-) On Oct 14, 2010, at 8:44 PM, Borut Bolčina wrote: > Only after I checked out the cayenne sources, debuged for a couple of hours > I checked again the relationship and found out I was referencing attribute > named mid instead of id attribute -

Re: Relationship not set (NULL)

2010-10-14 Thread Borut Bolčina
Only after I checked out the cayenne sources, debuged for a couple of hours I checked again the relationship and found out I was referencing attribute named mid instead of id attribute - what a plonker! I will make larger fonts on my screen. Of course it works now. 2010/10/14 Borut Bolčina > A

Re: Relationship not set (NULL)

2010-10-14 Thread Borut Bolčina
Andrus, thanks for the tip. Unfortunately it does not work. Just now I replaced the code which fetches the two objects from shared to local datacontext with two queries which return the two objects in question (localMot and localTown) into the same datacontext. I commented the code which was "tra