java - 是否存在任何可视化(或至少记录)iBatis 映射的技术?

标签 java ibatis

对于那些使用过 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 */

文档在 this link 中.
类似的主题在 here 中。

关于java - 是否存在任何可视化(或至少记录)iBatis 映射的技术?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6075072/

相关文章:

java - java中图形操作的实用程序

java - 无法在 junit 测试中从应用程序上下文加载 bean

java - Ibatis版show sql怎么做

java - MyBatis java 和 MySql 局部变量

java - 通过 Java Mail API 发送邮件时连接超时异常

java - 如何解决 Hibernate 异常 "IllegalArgumentException occurred while calling setter"的原因?

java - iBATIS - 请求和 session 范围

java - 带有 MyBatis 错误的 Spring MVC 4。

mybatis - 由 : org. apache.ibatis.ognl.NoSuchPropertyException 引起:

java - 下载 Java 类文件并运行?