ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Bayon" <ibatis....@gmail.com>
Subject Re: Obtaining error messages instead of null values for bad data cases?
Date Sun, 24 Sep 2006 16:56:56 GMT
Perhaps must you use a custom type handler.

On 9/22/06, Per Magne Bjornerud <PMBjornerud@interlect.co.jp> wrote:
> I'm using iBatis to let the user upload data with CSV files.
> Some fields map to integer values in the object. If the CSV file
> contains an mapping to an int field, but the CSV file contains a string
> value - then iBatis maps this to 0. (or null for nullable types)
> This causes the following issue: For CSV files with optional fields, I
> cannot tell if the fields with null values are due to allowed null
> values or bad data. And I need to know about the cases with bad data.
> Is there any way to obtain this information when mapping with iBatis?
> --
> Per Magne Bjornerud


<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a>

View raw message