Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 38762 invoked from network); 10 Mar 2009 07:34:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 07:34:29 -0000 Received: (qmail 44205 invoked by uid 500); 10 Mar 2009 07:34:28 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 44173 invoked by uid 500); 10 Mar 2009 07:34:28 -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 44162 invoked by uid 99); 10 Mar 2009 07:34:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 00:34:28 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 07:34:21 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LgwTQ-00014C-LW for users@openjpa.apache.org; Tue, 10 Mar 2009 00:34:00 -0700 Message-ID: <1236670440656-2453694.post@n2.nabble.com> Date: Tue, 10 Mar 2009 00:34:00 -0700 (PDT) From: is_maximum To: users@openjpa.apache.org Subject: Re: What is ManagedInterface In-Reply-To: <1236670152984-2453678.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mnrz57@gmail.com References: <1236606317654-2449023.post@n2.nabble.com> <1236622144759-2450634.post@n2.nabble.com> <1236670152984-2453678.post@n2.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Pinaki, Now it seems much more useful. the Graph you said seems interesting to me. I am going to see if it can help me in our project. Thanks Pinaki Poddar wrote: > > Hi, > You can also define relations in terms of a interface (say T), tell > OpenJPA that at runtime you will at supply a Persistence capable instance > for the interface (see @Type annotation in the doc). > > Effectively you can define a class say Graph with generic type T and > persist with Person or City at runtime as the node of the real graph. > > > > is_maximum wrote: >> >> Thanks Craig, >> Yes it reduces the redundant code. But I was thinking of a great idea >> behind that which may leads me to a revolution in my application :) >> >> >> >> Craig L Russell wrote: >>> >>> Hi is_, >>> >>> On Mar 9, 2009, at 6:45 AM, is_maximum wrote: >>> >>>> >>>> Hi >>>> >>>> Can anyone explain what is the ManagedInterface good for? What >>>> benefit would >>>> achieve if we define all of our entities as interfaces? >>> >>> If your entities are pure data (no behavior) then defining them as >>> interfaces reduces mindless code generation for the implementation of >>> get and set methods. All you do is declare the methods and OpenJPA >>> does the rest. >>> >>> Craig >>>> >>>> >>>> thanks >>>> -- >>>> View this message in context: >>>> http://n2.nabble.com/What-is-ManagedInterface-tp2449023p2449023.html >>>> Sent from the OpenJPA Users mailing list archive at Nabble.com. >>>> >>> >>> Craig L Russell >>> Architect, Sun Java Enterprise System http://db.apache.org/jdo >>> 408 276-5638 mailto:Craig.Russell@sun.com >>> P.S. A good JDO? O, Gasp! >>> >>> >>> >>> >> >> > > -- View this message in context: http://n2.nabble.com/What-is-ManagedInterface-tp2449023p2453694.html Sent from the OpenJPA Users mailing list archive at Nabble.com.