ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Ibatis 3 - special method in model class which Ibatis can't use
Date Mon, 12 Apr 2010 15:17:10 GMT
Example?

2010/4/12 Tomáš Procházka <t.prochazka@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.prochazka@centrum.cz
>    WWW: http://www.atomsoft.cz
>    ICQ: 87147320
> ---------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

Mime
View raw message