东儿童
爱拼才会赢
摘要: MyBatis学习 之 一、MyBatis简介与配置MyBatis+Spring+MySqlMyBatis学习 之 二、SQL语句映射文件(1)resultMapMyBatis学习 之 二、SQL语句映射文件(2)增删改查、参数、缓存MyBatis学习 之 三、动态SQL语句MyBatis学习 之 四、MyBatis配置文件 阅读全文
posted @ 2011-10-20 23:26 哎!无悔 阅读(2536) 评论(0) 推荐(0) 编辑
摘要: MyBatis中,可以使用Generator自动生成代码,包括DAO层、 MODEL层 、MAPPING SQL映射文件。第一步:下载MyBatis的Generator工具下载地址:http://code.google.com/p/mybatis/downloads/detail?name=mybatis-generator-core-1.3.1-bundle.zip&can=3&q=Product%3DGenerator第二步:配置自动生成代码所需的XML配置文件,例如(generator.xml)Xml代码<?xmlversion="1.0"enc 阅读全文
posted @ 2011-10-20 23:24 哎!无悔 阅读(702) 评论(0) 推荐(0) 编辑