iBatis的代码自动生成工具abator
今天试了以下,感觉挺不错的 ,安装好 AbatorForEclipse1.1.0 插件后 点击
File ----- new ---- Abator for iBATIS Configuraction File 新建一个 abatorConfig.xml 文件
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN" "http://ibatis.apache.org/dtd/abator-config_1_0.dtd" >
<abatorConfiguration >
<abatorContext >
<jdbcConnection driverClass="???" connectionURL="???" userId="???" password="???" >
<classPathEntry location="???" />
</jdbcConnection>
<javaModelGenerator targetPackage="???" targetProject="???" />
<sqlMapGenerator targetPackage="???" targetProject="???" />
<daoGenerator targetPackage="???" targetProject="???" type="GENERIC-CI" />
<table schema="???" tableName="???" >
<columnOverride column="???" property="???" />
</table>
</abatorContext>
</abatorConfiguration>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN" "http://ibatis.apache.org/dtd/abator-config_1_0.dtd" >
<abatorConfiguration >
<abatorContext >
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@192.168.0.108:1521:logi" userId="root" password="123456" >
<classPathEntry location="E:\project\demo\WebRoot\WEB-INF\lib\classes12.jar" />
</jdbcConnection>
<javaModelGenerator targetPackage="com.unimas.bean" targetProject="Security" />
<sqlMapGenerator targetPackage="com.unimas.bean.mapping" targetProject="Security" />
<daoGenerator targetPackage="com.unimas.dao" targetProject="Security" type="SPRING" />
<table tableName="t_user" ></table>
</abatorContext>
</abatorConfiguration>
我用的myeclipse 6.5版本,oracle是10g版本,在连接的时候出现了以下问题:
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-12705: Cannot access NLS data files or invalid environment specified
解决方法:
只需在eclipse目录下找到eclipse.ini文件,把
Duser.language=en 改成 Duser.language=zh就行了。
分享到:
相关推荐
Ibatis应用实例.docx,非常非常值得推荐下载
ibatis应用java 源码
Ibatis应用笔记,自己学习研究Ibatis的心得。
完整的Ibatis 应用事例,详细的代码说明
ibatis框架简单应用
ibatis的配置文件和映射文件,以及ibatis的应用
ibatis使用过程中的总结,有助于新手快速使用ibatis应用到自己的项目中
ibatis实例,ibatis实例,mysql应用举例,大家快来看。
实现ibatis手动控制加载sqlmap文件,终于不用重启应用了
” <br>但别犯愁:SQL本身具备了一些重要的功能,并且通过模板的使用,在Spring应用中采用iBATIS显得轻而易举。在此摘录中,两位作者将和你一起安装iBATIS并将其集成进你的Spring应用中。他们也阐明了怎样取得你...
书中既详实地介绍了iBATIS的设计理念和基础知识,也讨论了动态SQL、高速缓存、DAD框架等高级主题,还讲解了iBATIS在实际开发中的应用。《iBATIS实战》的最后给出了一个设计优雅、层次清晰的示例程序JGameStore,该...
ajax和ibatis的综合应用例子,内带了Ibaties的配置文件,是实现的一个读取XML文件的例子
ibatis3,对数据库的crud操作,用到了ibatis3的动态sql
iBATIS SQLMap
1,建立应用程序 2,在项目中增加对IBatisNet.Common、IBatisNet.DataAccess、IBatisNet.DataMapper的引用; 3,建立pojo类 4,配置ibatis对应pojo的sqlmap文件 5,把providers.config复制到debug目录下,不用做任何...
NULL 博文链接:https://yzz9i.iteye.com/blog/948430
一个完整的Spring+ Struts+Ibatis 应用框架整合的小例子,项目中使用的数据库为MySQL,表结构在文档贴出,可以自己照着例子做一下。
目前网上罕见的JSF+iBATIS+MySQL示例代码,公司某软件项目所需而做的前期DEMO,只有两个Web页面,用户登录和用户列表,但已经能够说明JSF+iBATIS的典型应用方式。 MyEclipse6.5 项目工程文件,内含SQL建库指令。 ...