Skip to content
玄辉 edited this page Oct 27, 2020 · 68 revisions

easyjdbc并不生产jdbc,easyjdbc只是本地jdbc的搬运工

[Build Status] [Maven central] APACHE 2 License

easyjdbc支持部分常用的JPA注解,使得经过注解的实体可以像Hibernate,jpa一样进行增、删、改和获取。SQL构造工具、SQL注解、链式API等让查询操作更为灵活。动态实体映射使得各种查询不再需要写大量的RowMapper。

easyjdbc1.x 基于jdk1.7, easyjdbc2.x基于jdk1.8 函数表达式, SQL注解Optional返回 ,Example条件函数表达式,例如

Example example=userDao.example();
Sorts sorts=new Sorts();
sorts.sort(Sorts.Direction.ASC,User::getId);
example.orderByClause(sorts);
Example.Criteria C= example.createCriteria();
C.andEqualTo(User::getId,2);

欢迎尝试!喜欢记得star哟~