ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <ni...@wis.nl>
Subject TypeHandlerCallback and lazy loading
Date Tue, 31 May 2005 11:54:18 GMT
Hi,

I've successfully used TypeHandlerCallback to load some complex
datatypes. Now I'm facing the following problem: I have a resultmap
which has 5 typehandler-definitions, when I load an object using this
resultmap, the typehandlers are called instantly, which cause lots of
DB-queries to be executed.

Is there a way to enable lazy loading for typehandlers? Maybe to keep
the ResultGetter in cache and only execute a special construction-method
when the property is requested?

Thanks for your thoughts,

Niels

Mime
View raw message