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 Amad Fida <am...@gmail.com> on 2005/01/24 06:37:04 UTC
Custom ResultSet extractor
I have a query which doesn't return any structured resut back, in
other words its not completl mapped to a Java bean. Some of the
columns become a HashMap as they are key , value pair for certain
values. how do i do that?
--
Amad Fida
Re: Custom ResultSet extractor
Posted by Larry Meadors <la...@gmail.com>.
I do not think I fully understand the question.
You have a query that returns results partly as a bean and partly as a Map?
If you want to map your results to a bean in a Map, or a Map in a
bean, you can use dot notation to make that work:
myBean.myMap.someProperty or myMap.myBean.someProperty.
Is that what you are trying to do, or are you talking about something
totally different?
Larry
On Sun, 23 Jan 2005 21:37:04 -0800, Amad Fida <am...@gmail.com> wrote:
> I have a query which doesn't return any structured resut back, in
> other words its not completl mapped to a Java bean. Some of the
> columns become a HashMap as they are key , value pair for certain
> values. how do i do that?