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"/>

<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