how to pass two different types of values to query in IBATIS

2010-04-11 Thread mukhi
I am using Spring with Ibatis. I want to pass a sting value and list to a query. How I can do that. My query is as follows INSERT INTO T_ENTRY_ANSWER_ASSOC( ENTRY_REFNO, CHOICE_REFNO ) SELECT #entryRefno#,CHOICE_REFNO, FROM T_CHOICE

Re: how to pass two different types of values to query in IBATIS

2010-04-11 Thread Nate Weiss
Hi mukhi-- I'm pretty new to this list, but I believe the general solution is to make a HashMap and pass that in: Map params = new HashMap(); params.entryRefno= myEntryRefno; params.someList = someList; getSqlMapClientTemplate().insert("insertChoice", params); In iBatis 3 you also have the op

Re: return simple String[] or List

2010-04-11 Thread Tomáš Procházka
Hi. But what I must specify to resulType if I want return List as return value from query? --- Původní zpráva --- Odesilatel: Guy Rouillier Předmět: return simple String[] or List Datum: 25. března 2010, 15:27:31 (GMT -0400) Příloh

Ibatis 3 - special method in model class which Ibatis can't use

2010-04-11 Thread Tomáš Procházka
Hi. I found some problem. I need have special method in model class which do some lazy initialization which can't be called from iBatis mapper. But problem is, that iBatis call all getXyz methods during insert or updated, also if I don't specify this fields in mapper xml file. I think that he c