Release 2.2.0 of iBATIS DataMapper natively supports Oracle REF Cursors - without the need to create a custom type handler. This FAQ shows a very small example on how to use it.
We start with the (Oracle) database related stuff. For this example we've created an Oracle user ibatis. In SQL*Plus (or whichever tool you use) log in as this user and run the commands shown below.

























We create a simple Java bean class to hold REFS' records.

































Next create a mapping file for the REFS table.


















Also we need a sqlMapConfig file. Below an example of this file.













And to finish up, a small tester program.
























