让appfuse使用ibatis
来源:互联网 发布:淘宝首页装修全屏代码 编辑:程序博客网 时间:2024/06/13 18:24
让appfuse使用ibatis
Posted by 黄晓磊 on 2008年2月28日
###配置appgen
##cd extras/appgen 现在运行appgen,使用table来生成代码会报错。因为,我们已经删除了hibernate。但appgen会用到middlegen来读取数据库,而middlegen会使用到hibernate.因此需作如下改动
#将appfuse中的hibernate库文件拷贝到middlegen的lib目录下。cp appfuse/lib/hibernate-3.2 当前应用/extras/middlegen/lib/
#修伽middlegen下的build.xml文件,添加如下内容
<property name=”hibernate.dir” location=”./lib/hibernate-3.2″/>
<property name=”hibernate.jar” location=”${hibernate.dir}/hibernate3.jar”/>
<path id=”hibernate.classpath”>
<pathelement location=”${hibernate.jar}”/>
<fileset dir=”${hibernate.dir}/lib” includes=”*.jar”/>
<pathelement location=”${database.jar}”/>
<pathelement location=”${commons-beanutils.jar}”/>
<pathelement location=”${commons-lang.jar}”/>
<path location=”${build.dir}/dao/classes”/>
</path>
#这时使用appgen,使用table来生成代码,会正常运行,在build目录下即可看见生成的代码。但是appgen默认会为hibernate和ibatis都生成相关代码。我们不想安装相关的hibernate代码,还需对appfuse的build.xml做出修改。
将<target name=”merge-config” depends=”merge-tests,merge-menu,merge-hibernate,merge-ibatis”>这行改为
<target name=”merge-config” depends=”merge-tests,merge-menu,merge-ibatis”>
- 让appfuse使用ibatis
- appfuse下使用ibatis的一般步骤和若干问题
- appfuse 使用1
- 关于appfuse的使用
- 使用maven创建appfuse
- appfuse使用笔记
- 使用ibatis时让控制台打印sql文的方法
- AppFuse
- appfuse
- appfuse
- AppFuse
- appfuse
- Appfuse
- appfuse
- appfuse
- appfuse
- Appfuse
- Appfuse
- c++ 文件结构
- 【转】ASP.NET专题研究——验证控件
- Asp.Net ListView 控件的使用
- asp.net中System.DateTime.Now.ToString()的用法
- (转载)虚函数与纯虚函数
- 让appfuse使用ibatis
- iformix union和order by error -374
- Java里一些算法的整理
- Android APK反编译
- 如何使用sparkle框架升级cocoa程序
- 锁定老贴子 主题:MySql配置(网易的)
- oracle 构造添加字段的SQL语句
- 命令行设置MySQL高速缓存启动方法
- session如何保存在专门的StateServer服务器中