• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Pass a List/Map Through the iBatis to the Database?

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currenly using JSF as the front end of a J2EE application. Data go through many business logic layers and reach the database through the iBatis.

The iBatis is new to me. To pass a query "String" from the front end to the database and get a "Collection" back from the database through the iBatis has been tested successful.

Now, I have great difficulty to pass a "List" or a "Map" through the iBatis to the database? Is it possible to be done?

The reason is that a table with thousands of records and each record has many name/value pairs may be sent to update the database. And looping through the table to send "String"s may not be a solution.

Thank you in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daniel,
As iBatis is a data mapping framework, I think this is more appropriate in our Object Relational Mapping forum. If you disagree, we can move it back here to JDBC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic