Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 91749 invoked from network); 31 Mar 2009 16:13:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2009 16:13:49 -0000 Received: (qmail 29044 invoked by uid 500); 31 Mar 2009 16:13:48 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 28967 invoked by uid 500); 31 Mar 2009 16:13:48 -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 28957 invoked by uid 99); 31 Mar 2009 16:13:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 16:13:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jaydmchugh@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 16:13:37 +0000 Received: by wa-out-1112.google.com with SMTP id j37so1568638waf.9 for ; Tue, 31 Mar 2009 09:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=p8MMgdbGzF1R3e4s/+H/ERKnos3bTq3oV0dalBmkPgU=; b=MtZ2439wrRDUYL8ES247vp62NCRZuth5dnh6/ONYpHIzv7hPKoF4bUkuYo7qq04Hm5 7LCkRJo6n4g/PLoxv8tPrN1vRbuNyKwPle7Jy807EObcldXvF4pbYL2i/gvFlqcttiAT ICjTuNUpUCoG49Si+hzOVanhOXk36qYFP2N9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=NQOR8R9q1SPw9oKO4fwdzHuKqFTqS3sUlRfksP9zCghVQh33Uog0sVjq+I63w6ozdI LvGjXdl13hKvvwHwqGWRMO/8PsScxdB4mVuV8UnAh3kvmd6wruOLNIIhz1TRdSto7M1q kkm7PuSnvVtG7+QUIc/sDizAOzlBF5ddeLQ1Y= Received: by 10.114.106.13 with SMTP id e13mr4492828wac.128.1238515996183; Tue, 31 Mar 2009 09:13:16 -0700 (PDT) Received: from ?172.16.3.2? (198.pubint.com [66.84.139.198]) by mx.google.com with ESMTPS id n22sm1891606pof.2.2009.03.31.09.13.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 09:13:15 -0700 (PDT) Message-ID: <49D24119.3020801@gmail.com> Date: Tue, 31 Mar 2009 11:13:13 -0500 From: "Jay D. McHugh" User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: users@openjpa.apache.org Subject: Re: 'Masking' fields in an Entity References: <49CCFEC8.4020006@gmail.com> <1238181868763-2546173.post@n2.nabble.com> <49CD3EF3.6030603@gmail.com> <1238188378460-2546695.post@n2.nabble.com> <49D10053.4070504@gmail.com> <49D11395.402@gmail.com> <1238476800021-2561243.post@n2.nabble.com> <1f6aacb70903302316v367cf40esd7323068815de66@mail.gmail.com> <1238507314169-2563035.post@n2.nabble.com> <49D22CC1.6060401@gmail.com> <1238514786666-2563797.post@n2.nabble.com> In-Reply-To: <1238514786666-2563797.post@n2.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Dynamic FetchPlans are now among my new favorite things (except now, I need to rewrite a lot of code to remove my fake entity hacks). I will definitely try to put together a sample (and blog posting, and wiki entry on Geronimo site). Jay Pinaki Poddar wrote: > Hi, > I like what you are doing and believe that it is a predominant use case for multi-tier for OpenJPA/JPA based web applications. > > Please consider writing up a small, self-contained sample (preferably without the application server scaffolding) to demonstrate your solution to integrate JAXB marshaling with constrained serialization support available via dynamic fetch plans of OpenJPA. > > Such samples can be made available with OpenJPA samples distribution. This will allow other community members to benefit from your contributions. Kevin had offered a project in Google Summer of Code [1] for similar purpose of enriching the corpus of samples that ship with OpenJPA. You can touch base with him to explore further (also there is $$$ for a GSoC project:). > > [1] http://wiki.apache.org/general/SummerOfCode2009#openjpa-project > > > Thanks for the hint. > > The setting you suggested caused deployment errors for me (I am > deploying my app to Geronimo 2.1.3 which uses OpenJPA 1.0.3). > > But, it looks like this setting will work for me: > > value="fetch-groups(AccessUnloaded=true)" /> > > The only strange thing is that my unloaded booleans show up in XML as > being false (rather than not showing up at all). So I'll just have to > make sure I include them in my fetch group. > > Thanks for all your help, > > Jay > > Pinaki Poddar wrote: >>> If I set the DetachState to something else, would I be able to get it >>> to simply return blanks/nulls for the unloaded fields? >> Try : >> >> >> >> >> ----- >> Pinaki Poddar http://ppoddar.blogspot.com/ >> >> http://www.linkedin.com/in/pinakipoddar >> OpenJPA PMC Member/Committer >> JPA Expert Group Member > > > > > ----- > Pinaki Poddar http://ppoddar.blogspot.com/ > > http://www.linkedin.com/in/pinakipoddar > OpenJPA PMC Member/Committer > JPA Expert Group Member