对于那些使用过 iBatis 的人——您通常使用什么技术或工具来可视化声明性 XML、数据库表/过程和 Java 对象之间的数据映射?我没有在网络上或文档中找到任何引用资料,并且很好奇是否存在好的解决方案。提前致谢!
最佳答案
如果您想要生成的查询及其参数映射,那么您可以使用日志记录。 iBatis 支持 Log4J
日志,你可以使用它。它显示在日志区域执行 sql 和其他类似的方式
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 */
关于java - 是否存在任何可视化(或至少记录)iBatis 映射的技术?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6075072/