ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 张鑫宇 <ZHANGXINYU...@PAIC.com.cn>
Subject A question about Map results??
Date Thu, 17 Nov 2005 08:32:25 GMT
HI,
 
if the resultMap class is a HashMap,and a property in it is a javabean class,it has serval
properties. How to set the resultMap for the property?
 
I write the resultMap like under,but it doesn't work.
 
 <resultMap id="result-map" class="java.util.HashMap">
      <result property="product" javaType="”com.ibatis.example.Product”" column="{id=PRD_ID,description=PRD_DESCRIPION}"
/>
 </resultMap>
 
 <statement id="sqlTest" resultMap="result-map">
       select PRD_ID,PRD_DESCRIPION from product
 </statement>
 
How to set the product property?
 
xinyu
 
 

Mime
View raw message