![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ibatis
菜鸟快飞
这个作者很懒,什么都没留下…
展开
-
Ibatis中SqlMapConfig.xml中的setting属性
cacheModelsEnabled="true" lazyLoadingEnabled="false" enhancementEnabled="true" maxSessions="64" maxTransactions="8" maxRequests="128" useStatementNamespaces="false"转载 2013-07-02 11:55:44 · 674 阅读 · 0 评论 -
updateByPrimaryKey与updateByPrimaryKeySelective
在abator中可生成iBatis的代码。其中,Sql_map中带有的两个函数是:updateByPrimaryKeySelectiveupdateByPrimaryKey前者只是更新新的model中不为空的字段。后者则会将为空的字段在数据库中置为NULL。例如:Action[java] view plain copy转载 2018-01-16 11:05:08 · 1139 阅读 · 0 评论