RE: Cannot correctly configure log4j to log Cayenne stuff

2012-06-18 Thread cghersi
to pilot QueryLogger to print its messages with INFO level to the System.out stream instead of system.err stream? Thank you very much to everybody! Best cghersi From: John Huss [via Cayenne] [mailto:ml-node+s195n4024293...@n3.nabble.com] Sent: giovedì 14 giugno 2012 16:03 To: cghersi

RE: Cannot correctly configure log4j to log Cayenne stuff

2012-06-14 Thread cghersi
Hi Michael, in fact, the page for 3.0 gives no hints about where placing log4j properties file... Do you know where may I find such information? Thanks! Best cghersi From: Michael Gentry-2 [via Cayenne] [mailto:ml-node+s195n4024290...@n3.nabble.com] Sent: giovedì 14 giugno

RE: Cannot correctly configure log4j to log Cayenne stuff

2012-06-14 Thread cghersi
Hi Emerson, sorry but I’m using Cayenne 3.0, while the link you posted regards Cayenne 2.0. How can I manage the same scenario in 3.0 version? Thank you very much! Best cghersi From: Emerson Castañeda [via Cayenne] [mailto:ml-node+s195n4024287...@n3.nabble.com] Sent: giovedì 14

RE: Cannot correctly configure log4j to log Cayenne stuff

2012-06-14 Thread cghersi
Emerson, I tried your approach but it didn’t worked for me. L Any other idea? Thank you very much. Best cghersi From: Emerson Castañeda [via Cayenne] [mailto:ml-node+s195n402428...@n3.nabble.com] Sent: giovedì 14 giugno 2012 12:32 To: cghersi Subject: Re: Cannot correctly configure

RE: Cannot correctly configure log4j to log Cayenne stuff

2012-06-14 Thread cghersi
Hi Emerson, thank you for the fast response! Where did you put your log4j.properties? Have you added anything of cayenne configuration? Thanks! Best cghersi From: Emerson Castañeda [via Cayenne] [mailto:ml-node+s195n4024281...@n3.nabble.com] Sent: giovedì 14 giugno 2012 12:14 To

Cannot correctly configure log4j to log Cayenne stuff

2012-06-14 Thread cghersi
this entry: but nevertheless I can see a huge amount of logs from QueryLogger class. I tried to put this file everywhere in my PC, but same results everytime! :( Is there any configuration I need to add during the configuration of Cayenne? Thank you very much! Be

Cayenne cache strategy

2012-05-23 Thread cghersi
at I need to issue in order to invalidate the preiovus results of the cache in this example? Thank you very much Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Cayenne-cache-strategy-tp4008506.html Sent from the Cayenne - User mailing list archive at Nabble.com.

RE: Temporary ID hasn't been replaced on commit

2012-03-16 Thread cghersi
Hi Robert, thank you for the hint: using one data context per request solved the problem! Up to now, I didn’t encountered any more this issue. Thanks to all for the help! Best cghersi From: Robert Zeigler-6 [via Cayenne] [mailto:ml-node+s195n3818950...@n3.nabble.com] Sent

RE: Temporary ID hasn't been replaced on commit

2012-03-12 Thread cghersi
!! Please, let me know what I’m doing wrong… Thank you very much Best cghersi From: Cristiano Ghersi [mailto:cristiano.ghe...@abodata.com] Sent: lunedì 12 marzo 2012 10:01 To: 'Andrus Adamchik [via Cayenne]' Subject: RE: Temporary ID hasn't been replaced on commit

RE: Temporary ID hasn't been replaced on commit

2012-03-12 Thread cghersi
only to a single table? Thank you very much. Best cghersi From: Andrus Adamchik [via Cayenne] [mailto:ml-node+s195n3813176...@n3.nabble.com] Sent: venerdì 9 marzo 2012 17:41 To: cghersi Subject: Re: Temporary ID hasn't been replaced on commit Sorry this is Cayenne 3.1 API, and

RE: Temporary ID hasn't been replaced on commit

2012-03-09 Thread cghersi
Hi Andrus, I cannot find documentation for your proposal (Cayenne.inPkForObject): may you give me an example of use? Thank you very much. Best cghersi From: Andrus Adamchik [via Cayenne] [mailto:ml-node+s195n3812833...@n3.nabble.com] Sent: venerdì 9 marzo 2012 15:40 To: cghersi

RE: Temporary ID hasn't been replaced on commit

2012-03-09 Thread cghersi
Exception in the subject. Is there any effective way to directly retrieve the ID of the just added object after the context.commitChanges() invocation? Thank you very much for your help. Best cghersi From: cghersi [via Cayenne] [mailto:ml-node+s195n3806195...@n3.nabble.com] Sent

Re: Temporary ID hasn't been replaced on commit

2012-03-07 Thread cghersi
add a great number of PhysicalNode objects in a little time window. Please, let me know if you have any idea! Thank you very much Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801043p3806195.html Sent from the Cay

Re: Temporary ID hasn't been replaced on commit

2012-03-06 Thread cghersi
(!id.isTemporary()) { return id.getIdSnapshot(); } id is null... Any idea about this? Thank you very much! Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801043p3803141.html Sent from the Cayenne

RE: Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
Hi Andrus. No, no relationships pointing to PhysicalNode have “To Dep PK” checked. By the way, PhysicalNode table has 8 relationships, 4 of them have “To Dep PK” checked and 4 of them haven’t. cghersi From: Andrus Adamchik [via Cayenne] [mailto:ml-node+s195n3801210...@n3.nabble.com

Re: Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
bjects: the result has been a NullPointerException in DataObjectUtils.java, line 114: ObjectId id = dataObject.getObjectId(); if (!id.isTemporary()) { return id.getIdSnapshot(); } on "id" object. Is there any other clues that may I provide? Thank you v

Re: Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
table is involved in a lot of relationships: is this a possible cause of failures? Any other idea? Let me know! Thank you very much Best cghersi -- View this

RE: Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
Hi Joachim, I’m sorry, An error occurred while posting my message, this is the cause of the duplicates! From: Durchholz, Joachim [via Cayenne] [mailto:ml-node+s195n3801091...@n3.nabble.com] Sent: lunedì 5 marzo 2012 17:11 To: cghersi Subject: RE: Temporary ID hasn't been replac

Re: Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
Hi Andrus, thank you for the fast reply! The DB is MySQL. The table is created with a code like this: CREATE TABLE PhysicalNode (AdditionalArgs VARCHAR(4000) NULL, BatteryLevel SMALLINT NULL, CoordX DOUBLE NOT NULL, CoordY DOUBLE NOT NULL, CoordZ DOUBLE NOT NULL, Creation BIGINT NOT NULL, CurrentP

Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
h a situation? Thank you very much. Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801071p3801071.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
h a situation? Thank you very much. Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801058p3801058.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
h a situation? Thank you very much. Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801043p3801043.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Temporary ID hasn't been replaced on commit

2012-03-05 Thread cghersi
h a situation? Thank you very much. Best cghersi -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801044p3801044.html Sent from the Cayenne - User mailing list archive at Nabble.com.