Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 814EF634052 for ; Tue, 16 Jun 2009 05:22:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 83347-09 for ; Tue, 16 Jun 2009 05:22:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f195.google.com (mail-qy0-f195.google.com [209.85.221.195]) by mail.postgresql.org (Postfix) with ESMTP id 84F58633E78 for ; Tue, 16 Jun 2009 05:22:19 -0300 (ADT) Received: by qyk33 with SMTP id 33so5212509qyk.15 for ; Tue, 16 Jun 2009 01:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=OYmi8GK58lQr3usbahdw1EGZYLo7JveKAxuxqYzB4lw=; b=tM6JFV2NyyuAiIlfzZCxl+yj1S5VJ47uARTBmwSdEvArUr/fWEVgcsBami0uK4crZR wymijTfjX/q9JgRKNCDJ8Krir6zfSALo5t/fe3xLgO9ShdYNTzDqfaq3/3wjaVP5wyI1 tOa7L2wedX/JMDusmCoyuphGOdhUCMjQTvH5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XEgfSn4mFAhgAYBqr06c3qy2gAtN+TfFZ9Jfd4Q0VwdK0Y/m1aYFotZFreecW7QZAX e6KXvrPh2EyPuVgtxCg44XLSjDNk9xo3vHa0JOOr8Piw5SFWvglPQzaT/nG+CEvF6e8I xzsDoRwjsGdJ5mNxHalbagx85OUfex93S1jBg= MIME-Version: 1.0 Received: by 10.220.94.129 with SMTP id z1mr5398183vcm.39.1245140538350; Tue, 16 Jun 2009 01:22:18 -0700 (PDT) In-Reply-To: <4A3206E2.4070508@kickstone.com> References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <4A313647.2020705@nitorcreations.com> <14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com> <4A3206E2.4070508@kickstone.com> Date: Tue, 16 Jun 2009 13:52:18 +0530 Message-ID: <14af40510906160122t60d30e48r828cb8acf7804bd0@mail.gmail.com> Subject: Re: Bad value for type BigDecimal : Y From: Ashish Jain To: John Lister Cc: Mikko Tiihonen , richard.broersma@gmail.com, pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=0016e644ccb87bde1a046c72dfe1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200906/61 X-Sequence-Number: 19725 --0016e644ccb87bde1a046c72dfe1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit John/Mikko/Richard, Thanks a lot for all your help on this issue. I was able to resolve this problem by setting the following property Thanks Ashish On Fri, Jun 12, 2009 at 1:12 PM, John Lister wrote: > Ashish Jain wrote: > >> Hi Mikko/Richard, >> Thanks for your reply. I do have a column whose length is 1. The >> definition goes something like this >> @Column(updatable=true, name="st_spom_status", nullable=false, length=1) >> private String status; >> Do you think this is what may be the cause of the problem?? >> >> > My first guess is that you have a column defined as a bigdecimal in your > jpa object but it is actually a string in the database one of whose rows > contains the value 'Y'. > > JOHN > > --0016e644ccb87bde1a046c72dfe1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable John/Mikko/Richard,

Thanks a lot for all your help on this issue.I was able to resolve this problem by setting the following property
&l= t;property name=3D"openjpa.jdbc.DBDictionary" value=3D"postg= res(StoreCharsAsNumbers=3Dfalse)"/>

Thanks
Ashish

On Fri, Jun 12, 2009= at 1:12 PM, John Lister <john.lister@kickstone.com> wrote:
Ashish Jain wrote:
Hi Mikko/Richard,
=A0Thanks for your reply. I do have a column whose length is 1. The definit= ion goes something like this
@Column(updatable=3Dtrue, name=3D"st_spom_status", nullable=3Dfal= se, length=3D1)
=A0private String status;
=A0Do you think this is what may be the cause of the problem??
=A0
My first guess is that you have a column defined as a bigdecimal in your jp= a object but it is actually a string in the database one of whose rows cont= ains the value 'Y'.

JOHN


--0016e644ccb87bde1a046c72dfe1--