ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Strange behaviour when column is null
Date Wed, 07 Feb 2007 15:12:57 GMT
Just create a sqlmapconfig.xml, a sqlmap.xml, and a simple class that
loads up the configuration and runs a query that fails, you can zip it
all up and attach it to a JIRA issue.

You can probably even put the DDL for the table in the sqlmap.xml, too.

Larry


On 2/7/07, Jonathan Tse <dev@tsez.net> wrote:
> Hi Larry,
>
>     Sure I can do it Any sample I can refer to?
>
> Best regards,
> Jonathan
>
> Larry Meadors wrote:
> > If you can create a complete test case that makes it fall over and
> > attach it to JIRA, one of us will get it fixed.
> >
> > Larry
> >
> >
> > On 2/7/07, Jonathan Tse <dev@tsez.net> wrote:
> >> Hi Albert,
> >>
> >>     I eventually figure out what the problem is. And it seems that it is
> >> a bug or something...
> >>
> >>     The strangest things is , if I move the position of the result tag
> >> of path  above the result tag of listPrice , everything work fine!!! If
> >> I move it back, the problem persist .... No code changed. Just the
> >> position of the result tag!!!! ..........
> >>
> >> I guess it is something related to primitive double type ....
> >>
> >> Best regards,
> >> Jonathan
> >>
> >> p.s. : Supply with part of the source code if you guys want to further
> >> investigate it.
> >>
> >>     The pojo actually look like this:
> >>
> >>     private Long productId;
> >>     private Long categoryId;
> >>     private String name;
> >>     private String description;
> >>     private String productCode;
> >>     private double listPrice;
> >>     private int quantity;
> >>     private String path;
> >>     private boolean hot;
> >>     private int status;
> >>
> >>     And the resultMap
> >>
> >>     <resultMap id="productResult" class="product">
> >>         <result property="productId" column="product_id" />
> >>         <result property="name" column="name" />
> >>         <result property="description" column="description" />
> >>         <result property="path" column="imagepath" />
> >>         <result property="categoryId" column="categoryid" />
> >>         <result property="listPrice" column="listprice" />
> >>
> >>         <result property="hot" column="hot" />
> >>         <result property="status" column="status" />
> >>     </resultMap>
> >>
> >>
> >>
> >> Albert Aymerich wrote:
> >> > Just try defining the column jdbc type in the resultMap for each
> >> column that can
> >> > be nullable.
> >> > Hope this can help.
> >> >
> >> > Albert
> >> >
> >> >
> >> >
> >> >
> >>
> >>
>
>

Mime
View raw message