Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5B477634E7F for ; Fri, 12 Jun 2009 04:42:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93830-08 for ; Fri, 12 Jun 2009 04:42:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.kickstone.com (smtp.kickstone.com [87.194.183.70]) by mail.postgresql.org (Postfix) with ESMTP id 47A58634D8C for ; Fri, 12 Jun 2009 04:42:30 -0300 (ADT) Received: from 62-64-179-112.dynamic.dial.as9105.com ([62.64.179.112]:53950 helo=[192.168.6.12]) by mail.kickstone.com with esmtpa (Exim 4.69) (envelope-from ) id 1MF1P7-0001VO-Nt; Fri, 12 Jun 2009 08:42:25 +0100 Message-ID: <4A3206E2.4070508@kickstone.com> Date: Fri, 12 Jun 2009 08:42:26 +0100 From: John Lister User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Ashish Jain CC: Mikko Tiihonen , richard.broersma@gmail.com, pgsql-jdbc@postgresql.org Subject: Re: Bad value for type BigDecimal : Y References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <4A313647.2020705@nitorcreations.com> <14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com> In-Reply-To: <14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/58 X-Sequence-Number: 19722 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