![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
_jerrytiger
这个作者很懒,什么都没留下…
展开
-
mybatis学习笔记(二) 多pojo,复杂映射
现在在数据库增加两张表blog与comment ,即博客与评论表。CREATE TABLE `blog` ( `id` int(11) NOT NULL default '0', `title` varchar(255) default NULL, `content` text, `pub_time` datetime default NULL, `user_id` int原创 2013-12-10 00:42:41 · 15606 阅读 · 1 评论 -
mybatis学习笔记(三) 动态sql
在mybatis的映射文件中有如下一些标签可以使用 if , chose , where ,set , foreach , trim , include , 使用这些标签 可以帮助我们动态的生成sql用法实例 select from `user` user_name = #{userName}原创 2013-12-11 00:29:53 · 1838 阅读 · 0 评论 -
mybatis学习笔记(一) 项目搭建,helloworld实例
前言:之前一直使用hibernate在作为数据层的持久化框架,也用过mybatis,但是觉得要写的sql太多很麻烦, 所以使用的不多 。 现在进入阿里巴巴淘点点项目组之后发现他们在数据层使用的是mybatis,前端mvc框架用的是他们自己研发的webx3框架,所以决定研究一下这两个框架。 首先研究mybatis ,学习教程是官方的《MyBatis-3-User-Guide-Simplifi原创 2013-12-08 22:04:27 · 8733 阅读 · 2 评论