From: John Lister <john.lister@kickstone.com>
To: Ashish Jain <ashjain2@gmail.com>
Cc: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: richard.broersma@gmail.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bad value for type BigDecimal : Y
Date: Fri, 12 Jun 2009 08:42:26 +0100
Message-ID: <4A3206E2.4070508@kickstone.com> (raw)
In-Reply-To: <14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com>
<4A313647.2020705@nitorcreations.com>
<14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: john.lister@kickstone.com, ashjain2@gmail.com, mikko.tiihonen@nitorcreations.com, richard.broersma@gmail.com
Subject: Re: Bad value for type BigDecimal : Y
In-Reply-To: <4A3206E2.4070508@kickstone.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <4A313647.2020705@nitorcreations.com> <14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com> <4A3206E2.4070508@kickstone.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox