Hi. Simply add method like
private String something; public String getSomething() { System.out.println("Call getSomething"); return something; } to some model class which was generated by IBATOR without any modification of mapping xml. And try do some update or inserts with this model class like QueueMapper qm = s.getMapper(QueueMapper.class); qm.updateByPrimaryKeySelective(q); ______________________________________________________________ > Od: "Clinton Begin" <clinton.be...@gmail.com> > Komu: user-java@ibatis.apache.org, Tomáš Procházka <t.procha...@centrum.cz> > Datum: 12.04.2010 17:18 > Předmět: Re: Ibatis 3 - special method in model class which Ibatis can't use > >Example? > >2010/4/12 Tomáš Procházka <t.procha...@centrum.cz> > >> 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 call >> all get methods. >> >> Don't be better call only methods which is used in mapper XML file? >> >> Or exist some annotation which tell Ibatis don't use some method? >> >> I also tried move these methods to parent abstract class. So it is not >> defined in model class directly, but Ibatis still call them during insert or >> update. >> >> Do you somebody have some idea? >> >> >> Datum: 8:00:11 12. dubna 2010 >> -- >> --------------------------------------------------------------------- >> Tomáš Procházka >> >> >> E-mail: t.procha...@centrum.cz >> WWW: http://www.atomsoft.cz >> ICQ: 87147320 >> --------------------------------------------------------------------- >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org >> For additional commands, e-mail: user-java-h...@ibatis.apache.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org