How to populate collection like map with annotation in mybatis?

Ads

 
 

Share on Google+Share on Google+

Ranajit Paul
How to populate collection like map with annotation in mybatis?
0 Answer(s)      3 years and 9 months ago
Posted in : Spring
  <collection property="participantCas" column="agmtsID" javaType="java.util.ArrayList" ofType="com.Client">
    <id property="partyId" column="partcptPartyId"/>
    <result property="clientName" column="partcptName"/>
    <result property="cas" column="partcptcas"/></collection>

I have tried to map this collection property using annotation. But it didn't work.How to remap this collection property? Please let us know the answer ASAP.Thank you very much in advance.

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Advertisements
map
Map