Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 97391 invoked from network); 1 Apr 2010 15:20:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Apr 2010 15:20:00 -0000 Received: (qmail 18959 invoked by uid 500); 1 Apr 2010 15:20:00 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 18928 invoked by uid 500); 1 Apr 2010 15:20:00 -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 18920 invoked by uid 99); 1 Apr 2010 15:20:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 15:20:00 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 15:19:54 +0000 Received: from jim.nabble.com ([192.168.236.80]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NxMBA-0000fE-BR for users@openjpa.apache.org; Thu, 01 Apr 2010 08:19:32 -0700 Date: Thu, 1 Apr 2010 07:19:32 -0800 (PST) From: No1UNo To: users@openjpa.apache.org Message-ID: <5BCFDE73-4040-4C41-86D6-E81E06E7C083@jerrycarter.org> In-Reply-To: <1270133790646-4837568.post@n2.nabble.com> References: <1270133790646-4837568.post@n2.nabble.com> Subject: Re: can JPA Entity extend non JPA Entity? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7632_12097827.1270135172348" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_7632_12097827.1270135172348 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit You may be looking for '@Transient' [1] which indicates that a field should not be persisted by the EntityManager. You may also benefit from an introductory text to JPA such as this one [2]. Hope that helps. [1] http://javadoc.glassfish.org/javaee6/apidoc/javax/persistence/Transient.html [2] http://www.amazon.com/Pro-JPA-Mastering-Persistence-Technology/dp/1430219564 On Apr 1, 2010, at 10:56 AM, sapatel [via OpenJPA] wrote: > Hi all, > > i am new to JPA. What I want to do is I want all my JPA entities to extend some BaseEntity class where can I define some properites (which are not table columns) to use/share. > > Is there anyway to do that? > > -Sanjay > > View message @ http://n2.nabble.com/can-JPA-Entity-extend-non-JPA-Entity-tp4837568p4837568.html > To start a new topic under OpenJPA Users, email ml-node+208411-1595610943-93721@n2.nabble.com > To unsubscribe from OpenJPA Users, click here. > -- View this message in context: http://n2.nabble.com/can-JPA-Entity-extend-non-JPA-Entity-tp4837568p4837713.html Sent from the OpenJPA Users mailing list archive at Nabble.com. ------=_Part_7632_12097827.1270135172348--