![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mybatis
javaious
这个作者很懒,什么都没留下…
展开
-
mybatis动态SQL语句
三、动态SQL语句 有些时候,sql语句where条件中,需要一些安全判断,例如按性别检索,如果传入的参数是空的,此时查询出的结果很可能是空的,也许我们需要参数为空时,是查出全部的信息。这是我们可以使用动态sql,增加一个判断,当参数不符合要求的时候,我们可以不去判断此查询条件。 下文均采用mysql语法和函数(例如字符串链接函数CONCAT)。转载 2013-11-21 12:16:09 · 2433 阅读 · 0 评论 -
mybatis-generator 无法自动生成字段类型为text的属性
解决思路: The fully qualified Java Type of the property for this column. This can be used to override the type calculated by the JavaTypeResolver if required. For some databases, this is necessary t原创 2014-03-05 17:13:55 · 14673 阅读 · 0 评论