iBatis mapping: map a string field into a List<String>

Posted by Roberto on Stack Overflow See other posts from Stack Overflow or by Roberto
Published on 2010-04-22T09:43:42Z Indexed on 2010/04/22 19:03 UTC
Read the original article Hit count: 363

Filed under:
|
|

Hi all, is it possible to map a string field with a particular format like:

aaa,bbb,ccc,ddd

into a List having elements [aaa, bbb, ccc, ddd] using iBatis?

What I need is to have in my model something like:

public class Request{
    private List<String> fieldOne;
    public List<String> getFieldOne(){....}
    public void setFieldOne(){....}
}

even if in my table the field is a simple string. Is this possible?

Thanks Roberto

© Stack Overflow or respective owner

Related posts about java

Related posts about ibatis