FENG JUNYUANcrazyrunsnail.hashnode.dev·Dec 22, 2024Refactor: status to statuses using mybatisBefore: <if test="status = 0"> and t.status = 0 and t.status1 = 1 </if> <if test="status = 1"> and t.status = 0 and t.status2 = 2 </if> <if test ="status != 2"> and t.status2 != 2 </if> After: <if test="statuses != null and statuses.size() > 0...Java
东mybatis-mp.hashnode.dev·Jun 16, 2024mybatis-mp: An ORM framework that you have never used before !!!Official documents:http://mybatis-mp.cn mybatis-mp 是一款超级好用ORM框架,它不是mybatis-plus;设计简单、 使用灵活、快捷、扩展性超强 JPA Hibernate JdbcTempte 等要么太死 太难 太呆;稍微复杂一点就需要拼sql 好累!!! 所以为什么不来试试 mybatis-mp;我只能说这太好用了,不信的 可以自己去试试,反正免费的!!! 1 单表: //单条 SysUser sysUser=QueryChain....MyBatis
Kai Niemiblog.cloudneutral.se·Apr 3, 2023Introduction to Roach DataRoach Data is a collection of small demos using different Java data access frameworks and ORMs with CockroachDB. The demo projects include: JDBC - using Spring Data JDBC which is just a simpler wrapper around JDBC JDBC (plain) - using plain JDBC wi...30 readsJDBC