ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Boden <list...@pandora.be>
Subject Re: nullValue = Question
Date Tue, 28 Feb 2006 17:52:20 GMT

I tried something similar in which the query in the "select" part 
returns an empty result (without using nullValue), and the property is 
properly set to NULL. Can you try the iBATIS version from SVN, and maybe 
also post the full stack-trace you get.


Warren wrote:

>I have a ResultMap that calls another select statement to retrive an object.
><resultMap id="scanOrderWithOrdersAndLineItemsResult" class="scanOrder">
>      ...
>	<result property="orderDog" select="getOrderDog" nullValue="NULL"/>
><select id="getOrderDog" resultMap="vendorResult">
>    SELECT col1, col2, ... FROM vendor WHERE ven_vendor_code = '0000      '
>orderDog is an object. I keep getting java.lang.NullPointer Exceptions
>related to the orderDog property. How do I get orderDog set to null if
>getOrderDog does not return a result?
>Warren Bell

View raw message