users
[Top] [All Lists]

Re: [cinjug-users] hibernate PropertyAccessException

To: "Akalamkam, Pardha" <Pardha.Akalamkam@xxxxxxxxxxxxxxxx>
Subject: Re: [cinjug-users] hibernate PropertyAccessException
From: josh marotti <marotti@xxxxxxxxx>
Date: Mon, 18 Jul 2005 21:21:54 -0400
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pUm93DWr6UpWuKDhmsKw0UrPtjpD7pWQ3fLjhDIlo2zaUrT7gQxmfZS3t5/GiasrQvss378O030R/XNOlgaLgO12qVaQoGXrvWj2kk9ERWvenxdnDMJ3jsYL5t5IHiwHEW8t/ZJ799f3+k8cr8jZbqqROwzwPE61cAR6ZQEJNZ8=
In-reply-to: <40BD3FF80943044FBAAB0EE2411DE14FB05900@laexuser01.us.aegon.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <40BD3FF80943044FBAAB0EE2411DE14FB05900@laexuser01.us.aegon.com>
Reply-to: josh marotti <marotti@xxxxxxxxx>
ResultSet has a 'wasNull();' function.  This is the simplist way to
check for nulls on something like a 'rs.getInt()'.

Hope that helps,
Josh

On 7/18/05, Akalamkam, Pardha <Pardha.Akalamkam@xxxxxxxxxxxxxxxx> wrote:
>  
> Hi 
>   I am getting PropertyAccessException when ever I try to fetch a record
> from a table with a nullable column(a null value). 
>   Can somebody suuggest my how to use a custom type for a primitive java
> type and avoid getting this error for a numeric(integer) null value. 
>   
> Thanks 
> Pardha

<Prev in Thread] Current Thread [Next in Thread>