Yeah, we probably should have moved this discussion to another thread
as soon as it became obvious it wasn't the direct cause of your
problem.
Here's an example of why to-dep-pk makes a difference:
Tables:
USER w/ pk of USER_ID
ACCOUNT w/pk of ACCOUNT_ID
USER_ACCOUNT join table with pk of USER_I
From what I see the problem is that RefreshQuery is not propagated to
remote clients. LOCAL_CACHE is local the tier where the query
originated. With some fixes in M4, this statement is true for both
nested contexts and ROP... Since by default there are no events pushed
from the server to th
Also worth noting: I still can't seem to crack my original problem. Can
anyone reproduce it?
-Original Message-
From: Scott Anderson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 13, 2008 5:16 PM
To: user@cayenne.apache.org
Subject: RE: one-to-many problem
That makes sense, but I still do
That makes sense, but I still don't see how it's more than an
annotation. If a relationship exists, an instance of that relationship
is, by definition, where the values on each side of the relationship are
equal.
Can you provide an example of when the field makes a difference? Why
does Cayenne car
Doh! I'll investigate tonight.
Andrus
On May 13, 2008, at 1:31 PM, Marcin Skladaniec wrote:
Hi
We have updated to M4 and since then this exception started to show
up (for some entities only) :
[java] org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT
May 13 2008 16:16:55] Remot
Hi
We have updated to M4 and since then this exception started to show up
(for some entities only) :
[java] org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT
May 13 2008 16:16:55] Remote error. URL - http://localhost:8181/angel-server-cayenne
; CAUSE - java.lang.NullPointerExcep
It tells the Cayenne Runtime where to find/generate the value for the PK.
Normally, they're generated by some "strategy" specified in the model,
or sometimes they are explicitly assigned by the application.
However, a dependent primary key (like a join table) has its primary
key value set with th
Correct!
I had duplicate cayenne files and some where missing in the correct
folder.
Thanks for your help!
-Mensaje original-
De: Michael Gentry [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 09 de mayo de 2008 18:19
Para: user@cayenne.apache.org
Asunto: Re: how can I use two different
On May 12, 2008, at 10:18 PM, Scott Anderson wrote:
Seems like a pointless annotation; vaguely equivalent to the reverse
of the relationship being ON DELETE CASCADE.
Not really. It tells Cayenne which table owns the PK and which table
borrows it from master. E.g. consider many-to-many case