From dev-return-8494-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Wed Jun 25 17:40:08 2008 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 59550 invoked from network); 25 Jun 2008 17:40:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 17:40:08 -0000 Received: (qmail 67102 invoked by uid 500); 25 Jun 2008 17:40:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 67079 invoked by uid 500); 25 Jun 2008 17:40:09 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 67068 invoked by uid 99); 25 Jun 2008 17:40:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 10:40:08 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anagaraj@in.ibm.com designates 59.145.155.5 as permitted sender) Received: from [59.145.155.5] (HELO e28esmtp05.in.ibm.com) (59.145.155.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 17:39:17 +0000 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by e28esmtp05.in.ibm.com (8.13.1/8.13.1) with ESMTP id m5PHWYYL019809 for ; Wed, 25 Jun 2008 23:02:34 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5PHVUJd753782 for ; Wed, 25 Jun 2008 23:01:30 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.13.1/8.13.3) with ESMTP id m5PHWXAe001677 for ; Wed, 25 Jun 2008 23:02:33 +0530 Received: from d23ml170.in.ibm.com (d23ml170.in.ibm.com [9.124.105.36]) by d28av02.in.ibm.com (8.13.1/8.12.11) with ESMTP id m5PHWX5L001674 for ; Wed, 25 Jun 2008 23:02:33 +0530 To: dev@openjpa.apache.org MIME-Version: 1.0 Subject: Using acces-type PROPERTY X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: From: Arun Nagarajan Date: Wed, 25 Jun 2008 23:02:55 +0530 X-MIMETrack: Serialize by Router on d23ml170/23/M/IBM(Release 7.0.2FP2HF300 | September 14, 2007) at 06/25/2008 23:02:56, Serialize complete at 06/25/2008 23:02:56 Content-Type: multipart/alternative; boundary="=_alternative 00605D4465257473_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00605D4465257473_= Content-Type: text/plain; charset="US-ASCII" Hi, I have a set of java classes which has only setter and getter methods (as they are generated using XML beans). At the entity level, I have defined the access as 'PROPERTY'. But when I try to persist them, I am getting the following error. Can you please let me know how to persist java classes, which have only getter and setter methods. Fields "com.ibm.retail.Product$InnerProduct.innerDesc, com.ibm.retail.Product$InnerProduct.innerName" are not a default persistent type, and do not have any annotations indicating their persistence strategy. If you do not want these fields to be persisted, annotate them with @Transient. The mapping.xml reads like this. The InnerProduct class has getInnerName and getInnerDesc as well as setInnerName and setInnerDesc methods. No fields. Thanks and Regards, arun... ------------------------------------------------------------------------------------------------------------------------ Arun N, IBM ------------------------------------------------------------------------------------------------------------------------ --=_alternative 00605D4465257473_=--