Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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
Sheriff
Posts: 35977
422
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!