Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 87530 invoked from network); 30 Dec 2008 16:03:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Dec 2008 16:03:09 -0000 Received: (qmail 8143 invoked by uid 500); 30 Dec 2008 16:03:07 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 8104 invoked by uid 500); 30 Dec 2008 16:03:07 -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 8052 invoked by uid 99); 30 Dec 2008 16:03:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 08:03:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of siberian@siberian.org designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 16:02:59 +0000 Received: by nf-out-0910.google.com with SMTP id g16so626202nfd.2 for ; Tue, 30 Dec 2008 08:02:37 -0800 (PST) Received: by 10.210.11.17 with SMTP id 17mr16200020ebk.113.1230652957310; Tue, 30 Dec 2008 08:02:37 -0800 (PST) Received: by 10.210.70.18 with HTTP; Tue, 30 Dec 2008 08:02:37 -0800 (PST) Message-ID: <479ffcd60812300802na09bb18j91ea073463d1f3d6@mail.gmail.com> Date: Tue, 30 Dec 2008 08:02:37 -0800 From: "John Armstrong" Sender: siberian@siberian.org To: user@cayenne.apache.org Subject: Pre-persist not firing MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: aeb68da2e6f5eb93 X-Virus-Checked: Checked by ClamAV on apache.org This is really basic but I am a bit sick and am just not finding my answer (thats my excuse, sick..) In my map I have this (generated via M5 Modeler): In my com.printgate.model.Company object I have this method: public void generateCompanyID(){ System.out.println("In generate"); } I call it like this : public BigTest(){ context = DataContext.createDataContext(); theCompany = (Company) context.newObject(com.printgate.model.Company.class); context.commitChanges(); } The object is created in the datastore but my pre-persist never fires. This is M5. I also rolled back to M4 with the same problem so I am sure its something obvious that i am missing in how I wire it all together (although it does work in another project I have). Thanks John-