Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 112BA951E for ; Mon, 5 Mar 2012 16:34:48 +0000 (UTC) Received: (qmail 42944 invoked by uid 500); 5 Mar 2012 16:34:47 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 42919 invoked by uid 500); 5 Mar 2012 16:34:47 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 42911 invoked by uid 99); 5 Mar 2012 16:34:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 16:34:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Mar 2012 16:34:41 +0000 Received: (qmail 27816 invoked from network); 5 Mar 2012 16:34:19 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 5 Mar 2012 16:34:19 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Temporary ID hasn't been replaced on commit From: Andrus Adamchik In-Reply-To: <1330963814361-3801088.post@n3.nabble.com> Date: Mon, 5 Mar 2012 11:34:18 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <1E110251-1065-42EE-BECE-B3C491FAFCAA@objectstyle.org> References: <1330963047095-3801043.post@n3.nabble.com> <13F3F8D2-5297-41A0-927F-C98318FB7954@objectstyle.org> <1330963814361-3801088.post@n3.nabble.com> To: user@cayenne.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Looks good. If it is also "Database-generated" in Cayenne model, then = everything I can think of is correct. Based on the information that you've provided, I can't think of anything = else Cayenne-related that might cause it :-/ Andrus On Mar 5, 2012, at 11:10 AM, cghersi wrote: > Hi Andrus, thank you for the fast reply! >=20 > 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, CurrentPwrSrc SMALLINT NULL, > ExpectedLifeTime BIGINT NULL, Id INT NOT NULL AUTO_INCREMENT, IsOnline = BOOL > NOT NULL, Label VARCHAR(255) NOT NULL, LastBatteryChange BIGINT NULL, > LastMaintenance BIGINT NULL, LastStatusTime BIGINT NULL, MacAddress = LONGBLOB > NOT NULL, NSAP LONGBLOB NOT NULL, NetworkId INT NOT NULL, SignalRange = FLOAT > NULL, Type SMALLINT NOT NULL, WakeupPolicy SMALLINT NULL, PRIMARY KEY = (Id)) > ENGINE=3DInnoDB > ; >=20 > You can see the PK is "Id" and it is AUTO_INCREMENT. >=20 > -- > View this message in context: = http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-comm= it-tp3801043p3801088.html > Sent from the Cayenne - User mailing list archive at Nabble.com. >=20