ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amad Fida" <amad.f...@gmail.com>
Subject Collection properties in resultMap
Date Sat, 29 Oct 2005 18:08:48 GMT
Hi all, 

I have a table which has columns like CutomField1, CustomField2, etc

Now I have a class

Class User {

	private Collection customFields;

How would I map individual columns to single collection property?

Is something like this possible?

  <resultMap id="user" class="User">
    <result property="customFiels[0]" column="CustomField1"/>
    <result property="customFiels[1]" column="CustomField2"/>
    <result property="customFiels[2]" column="CustomField3"/>




View raw message