ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rinaldo Bonazzo <rbona...@sardiniapoint.it>
Subject Re: How to map a list of double?
Date Wed, 12 Sep 2007 09:20:41 GMT
Hi all,
in my project I use this code to retrieve a List of Integer and it run fine
hope that it can help

Regards
Rinaldo

...
    <resultMap class="Integer" id="soloIdCase">
        <!-- result con solo idabitazioni -->
        <result column="idAbitazione" jdbcType="INTEGER"
                property="idAbitazione" />
    </resultMap>
    <!-- solo codici -->
    <select id="selectsoloid" parameterClass="java.util.Map"
        resultMap="soloIdCase"
        >
        select t1.idAbitazione from dettcasa_it t1, foto t2
        <isParameterPresent>
            <include refid="dettcasa_it.ridotta_Example_Where_Clause" />
            <isPropertyAvailable property="ABATOR_ORDER_BY_CLAUSE">
                and t1.idAbitazione = t2.idAbitazione and ordine=0 and
                t1.onLine='S' and vendita='N' order by 
$ABATOR_ORDER_BY_CLAUSE$
            </isPropertyAvailable>
        </isParameterPresent>
    </select>
...

Jonathan Alvarsson ha scritto:
> On 9/11/07, *Jonathan Alvarsson* <jonathan.alvarsson@gmail.com 
> <mailto:jonathan.alvarsson@gmail.com>> wrote:
>
>     On 9/11/07, *Niels Beekman* <n.beekman@wis.nl
>     <mailto:n.beekman@wis.nl>> wrote:
>
>         My first guess was right, iBATIS tries to cast primitive
>         arrays to Object arrays, this is not allowed. Following is a
>         patch that fixes this, I don't know if this is the best way to
>         fix it. You could apply this patch and build iBATIS yourself,
>         in any case, please raise a JIRA issue @
>         http://issues.apache.org/jira/browse/IBATIS.
>
>
>     This sounds somewhat broken. What's a JIRA issue? And how do you
>     do things like this without recompiling iBatis? (Which I won't
>     like the day I want to update...)
>
>
> Something like this: 
> <https://issues.apache.org/jira/browse/IBATIS-456> I guess...
>
> -- 
> // Jonathan 


Mime
View raw message