ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karen Koch <kmk...@sbcglobal.net>
Subject RE: Two separate map configs
Date Thu, 27 Jan 2005 18:59:21 GMT
Could it be a problem with the cross-SQLMap reference to the getMold statement
in the wareResult ResultMap?
 
> WareSQL.xml
> ============
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE sqlMap PUBLIC "-//iBatis.com//DTD SQL Map 2.0//EN"
> 	"http://www.ibatis.com/dtd/sql-map-2.dtd" >
> 
> <sqlMap namespace="Ware">
> 	
> 	<typeAlias alias="ware" type="com.amervideo.ehold.data.Ware" />
> 
> 	<resultMap id="wareResult" class="ware" >
> 		<result property="id" column="laser_id"/>
> 		<result property="name" column="laser_id" />
> 		<result property="mold" column="mold_id"
> select="getMold" />
> 	</resultMap>
> 
> 	<statement id="getWare" 
> 		resultMap="wareResult" >
> 		select laser_id, mold_id
> 		from av21.mes_2d_ware_tracking
> 		where laser_id = #name#
> 	</statement>
> 
> </sqlMap>


Mime
View raw message