You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Oleg Shpak <ol...@rap-x.com> on 2005/08/24 10:51:08 UTC

Factories to create result objects

Is there a way to configure iBatis Java to use a factory class (or,
better, instance) to create result objects instead of Class.newInstance
method?

For example, I want to initialize my objects, i.e. set a property to
refer to a particular object of my application.

In general I can do this in my code after I retrieve results from 
iBatis, but there is nothing I can do when objects are fetched with lazy 
loading.


Thanks,
Oleg