Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 42729 invoked from network); 9 Mar 2009 18:09:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 18:09:40 -0000 Received: (qmail 38316 invoked by uid 500); 9 Mar 2009 18:09:36 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 38297 invoked by uid 500); 9 Mar 2009 18:09:36 -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 38275 invoked by uid 99); 9 Mar 2009 18:09:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 11:09:36 -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 (nike.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; Mon, 09 Mar 2009 18:09:26 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LgjuS-0003As-Ol for users@openjpa.apache.org; Mon, 09 Mar 2009 11:09:04 -0700 Message-ID: <1236622144759-2450634.post@n2.nabble.com> Date: Mon, 9 Mar 2009 11:09:04 -0700 (PDT) From: is_maximum To: users@openjpa.apache.org Subject: Re: What is ManagedInterface In-Reply-To: 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> X-Virus-Checked: Checked by ClamAV on apache.org 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-tp2449023p2450634.html Sent from the OpenJPA Users mailing list archive at Nabble.com.