|
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
|
- A question about Map results?? 张鑫宇
- Re: A question about Map results?? Gary Bradshaw
