ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Warren" <war...@clarksnutrition.com>
Subject nullValue = Question
Date Tue, 28 Feb 2006 02:46:58 GMT
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"/>
</resultMap>

<select id="getOrderDog" resultMap="vendorResult">
    SELECT col1, col2, ... FROM vendor WHERE ven_vendor_code = '0000      '
</select>

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?

Thanks,

Warren Bell


Mime
View raw message