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 3B6239331 for ; Fri, 3 Aug 2012 10:16:50 +0000 (UTC) Received: (qmail 40744 invoked by uid 500); 3 Aug 2012 10:16:50 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 40499 invoked by uid 500); 3 Aug 2012 10:16:46 -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 40444 invoked by uid 99); 3 Aug 2012 10:16:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 10:16:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kanwarmanish@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 10:16:40 +0000 Received: by obqv19 with SMTP id v19so1906593obq.16 for ; Fri, 03 Aug 2012 03:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7VRwcb463c1wjzCT7zPfe+gz/x4bWZVYrwpQJfSyvEA=; b=QIYYaKkg+LUHg69LdPqNgL+LTVylYjBwnEneSKo5m5plgd9XrntnNY0y6cMX0lO+fR 3KpMCe+ZMNjcUjP/jz1Za414wAhTMYDpRiFB+j54TPHYOBs+Zg8XjR+3Ivy5KCecRtfn wrKTpIVyzJqTCQsWHVA+d83PrR1ZaX1jP9kk3nYtTHFgaHtsfk17Mp/ik/K22/1W/aQv WtATd3vbk4iMqPUtNva3AzXVPmHPViBD/HSYBjYY2kLjWzplWTugdct8K/k9kW6JWGd2 0S7F5iM5XW8EO3KIbTViQqIvPvLb6oMKWG32je0aGnxZRbQQ1rYcKF9cBTWyzBDzvoMy bhWg== MIME-Version: 1.0 Received: by 10.182.74.66 with SMTP id r2mr3234114obv.29.1343988980151; Fri, 03 Aug 2012 03:16:20 -0700 (PDT) Received: by 10.76.86.103 with HTTP; Fri, 3 Aug 2012 03:16:20 -0700 (PDT) In-Reply-To: <4B967FDC-7002-4448-87C3-68E67DB6DF34@objectstyle.org> References: <1343377148960-4024463.post@n3.nabble.com> <1343974098867-4024479.post@n3.nabble.com> <4B967FDC-7002-4448-87C3-68E67DB6DF34@objectstyle.org> Date: Fri, 3 Aug 2012 15:46:20 +0530 Message-ID: Subject: Re: Can default values be set in Constructor instead of setPersistenceState()? From: Kanwar Manish To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=f46d044470d1be739404c659d124 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044470d1be739404c659d124 Content-Type: text/plain; charset=ISO-8859-1 Thanks Andrus. I am afraid that will be a bit tough for me - for now. I am a complete Java and Linux noob, coming from .NET background. I tried attaching 3.1B1 source to the binaries [in Netbeans 7.2] but failed. I just can't figure out which source folder to attach with which Cayenne Jar [Client, server, tools or lifecycle]. Can anybody help me out here please? Thanks Manish On Fri, Aug 3, 2012 at 1:28 PM, Andrus Adamchik wrote: > Hi, > > I am not aware of any issues with PostAdd. Your best bet is to debug > inside Cayenne DataContext.newObject(..). Specifically in BaseContext there > is a method "injectInitialValue" that has this line at the end: > > // invoke callbacks > getEntityResolver().getCallbackRegistry().performCallbacks( > LifecycleEvent.POST_ADD, > object); > > This is where callbacks are invoked. Please share what you find here, and > maybe based on those clues we can unwind it further. > > Cheers, > Andrus > > > On Aug 3, 2012, at 9:08 AM, KM wrote: > > > Removed the check for the key. > > > > It seems that the problem is that this is not getting fired at all. > > Breakpoint is not being hit. This is strange. > > > > I have checked for the abstract declaration in the parent class. Setting > > this up in the modeler. > > > > Has anyone faced this problem before? > > > > Thanks > > Kanwar Manish > > > > > > > > -- > > View this message in context: > http://cayenne.195.n3.nabble.com/Can-default-values-be-set-in-Constructor-instead-of-setPersistenceState-tp3320047p4024479.html > > Sent from the Cayenne - User mailing list archive at Nabble.com. > > > > --f46d044470d1be739404c659d124--