Are there any methods for visualizing (or at least documenting) iBatis Mappings?

For those who have used iBatis - what methods or tools do you usually use to visualize data mappings between declarative XML, database tables / procedures and Java objects? I did not find any links on the Internet or in the documentation, and I was curious if there were good solutions. Thanks in advance!

+4
source share
1 answer

If you want the generated query and its parameter mapping, you can use Logging. Support for iBatis Log4J allows you to use this. It shows the execution of sql and other similar logging methods.

 Preparing Statement: /*your query to be prepared */ Executing Statement: /*your prepared query with parameter mapping* (wiht ?,?,?)/ Parameters: /*Parameters mapped with the same sequence as `Executing Statement`*/ Types: /*java types of the mapped parameter(example java.lang.String, java.lang.String, java.lang.String)*/ ResultSet: /*ResultSet of the query (if any)*/ Result: /*Rows of the ResultSet */ 

The documentation is in this link .
And a similar topic in here

0
source

All Articles