ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From starfish0r <starfis...@gmail.com>
Subject RE: Serious Problem with Select resultClass=HashMap on different tables
Date Thu, 07 Jan 2010 12:16:07 GMT

Niels Beekman-2 wrote:
> http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+p
> ass+in+a+dynamic+table+name+-+or+other+uncommon+parameters

alexis wrote:
> Hi starfish0r,
> Assuming you are using iBATIS 2 (I have no clue if this has been kept in
> iBATIS 3 too), what you are looking for is the "remapResults" attribute in
> the select tag.
> From the documentation:
> "Since the overhead to introspect/determine the resultset metadata is not
> trivial, iBATIS will remember what
> was returned the last time the query was run. This creates problems in
> situations similar to the examples
> above, hence the possibility to do metadata introspection with every query
> execution.
> So if the return columns can change set remapResults to true, else set
> remapResults to false to avoid the
> overhead of metadata introspection."
> HTH,
> alexis

.............I can't believe I did not see this. *facepalm*

You guys just saved my day! :) Thanks a lot!!!!

Man, programming never gets boring.
View this message in context: http://old.nabble.com/Serious-Problem-with-Select-resultClass%3DHashMap-on-different-tables-tp27058010p27059078.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message