Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A19F9200BA2 for ; Sun, 16 Oct 2016 23:03:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A0020160AE7; Sun, 16 Oct 2016 21:03:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E5E2F160AD0 for ; Sun, 16 Oct 2016 23:03:30 +0200 (CEST) Received: (qmail 18012 invoked by uid 500); 16 Oct 2016 21:03:30 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 17996 invoked by uid 99); 16 Oct 2016 21:03:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2016 21:03:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3A85A18060C for ; Sun, 16 Oct 2016 21:03:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.192 X-Spam-Level: * X-Spam-Status: No, score=1.192 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.de Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id CBluMBfMYyrj for ; Sun, 16 Oct 2016 21:03:25 +0000 (UTC) Received: from nm8-vm3.bullet.mail.ne1.yahoo.com (nm8-vm3.bullet.mail.ne1.yahoo.com [98.138.91.138]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1CCCB5F3A1 for ; Sun, 16 Oct 2016 21:03:25 +0000 (UTC) Received: from [98.138.101.128] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 16 Oct 2016 21:03:16 -0000 Received: from [98.138.89.168] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 16 Oct 2016 21:03:15 -0000 Received: from [127.0.0.1] by omp1024.mail.ne1.yahoo.com with NNFMP; 16 Oct 2016 21:03:16 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 445782.33188.bm@omp1024.mail.ne1.yahoo.com X-YMail-OSG: ZKOgMAcVM1nwdHhAp2.WUqFWfL.AY4tBSsTXCZ6y_fwOsr63SpgI7r8L4SPwCjP 99meiOW9opC234Zb5Rb1kevdi.RniU.MfUGvReCPc5Jrn5a2yrp5ognonBVqUzleAccRJT9rP68Y eux2MYjXrP3eQjcjBuYd5xsecciGgzJzaRk_toBwaSEF4pLOWT3uMf92hyB.aDAuddU7ap86mDH4 nFo7X9Fh0rjpDYt28Y8RHkKWvwlDaY.JKUrR0NmBd78ukmTK8QNo3FqT8z4NzJAUBUJsa8GQSMp1 xw0ywfg_ieH8QJ.fwW3bKcBV.U76lYH1xA9GSVfZ1TPUpe6nx9oFrZ8yS7XW2eqPvmyySmJEkNYX Y6wZjGUwnG9E6aUlP3xLsz0nY_t1NTg4NirzQAdHBXue7XAx3JA_HQWbvqlJsbEPljVYImVsad26 9d.D.oItgGLrkxxdjnSq3C_1zv.ydOz2Xfsgm8hjpGOZAQMMafUJoCMUYstvUtO8.EgwNYnbIMW6 wxJYHuIOlZiuOdm.OBU0EP5HaFMb_aV4i338- Received: from jws200145.mail.ne1.yahoo.com by sendmailws161.mail.ne1.yahoo.com; Sun, 16 Oct 2016 21:03:16 +0000; 1476651796.038 Date: Sun, 16 Oct 2016 21:03:15 +0000 (UTC) From: Mark Struberg Reply-To: Mark Struberg To: "users@openjpa.apache.org" Message-ID: <1852202051.741385.1476651795767@mail.yahoo.com> In-Reply-To: <1476454015166-7589809.post@n2.nabble.com> References: <3331BCEF-2915-49EA-9966-663E58C716D2@jerrycarter.org> <811260.69635.qm@web27802.mail.ukl.yahoo.com> <1476454015166-7589809.post@n2.nabble.com> Subject: Re: Null field not persisted for Dates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit archived-at: Sun, 16 Oct 2016 21:03:31 -0000 Hi Vincenzo! No worries, your english is fine. The writeExternal is invoked to serialize away the entity. Whether the receiver side gets just the normal entity fields (unenhanced so to say) or also the _loaded and _dirty fields is a question of the configuration. I usually use the following setup: https://github.com/struberg/lightweightEE/blob/master/backend-api/src/main/resources/META-INF/persistence.xml#L26 Together with the openjpa-maven-plugin to enhance the classes at build time https://github.com/struberg/lightweightEE/blob/master/backend-api/pom.xml#L66 I should clean up the connection section config. That's a left over from many years back. But it should basically work. I've wrote up a bit about enhancement strategies many years ago, maybe it helps: https://struberg.wordpress.com/2012/01/08/jpa-enhancement-done-right/ Do you have a small sample which we can use to reproduce the problem? txs and LieGrue, strub > On Saturday, 15 October 2016, 19:25, Vincenzo D'Aniello wrote: > > Hi, i've set this property in the persistence unit: > > value="loaded(DetachedStateField=true)"/> > > but when the entity object try to be detached, an exception > NoSuchMethodException is thrown because openjpa try to execute the > writeExternal method on the entity class object. > > I have not understand abaut enhancer, Enhancement. There is a complete > example how do remote ejb call with ejb entity beans? > > I use Tomee 1.7.4 naturally with openejb, openjpa, sorry for my english. > > > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Null-field-not-persisted-for-Dates-tp5993519p7589809.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >