simpleCurd v1.0.1 更新,实现类似 hibernate 的 PrePersist 功能
simpleCurd简介: 只需要2个类即可实现类似mybatisPlus的功能,定义普通实体类就拥有curd功能,无需写mapper。 oschina项目地址:https://www.oschina.net/p/scofier-simplecurdscofier-simplecurd v1.0.1新增功能: 实现类似hibernate的PrePersist的功能 新增动态查询demo 新增selectByColumn的demo 实现类似hibernate的PrePersist的功能,具体示例如下: 定义Entity,比如User @Table(name = "user") public class User implements BaseMapper.Interceptor { String id; String name; String phone; @Override public void prePersist() { if(null==id){ id= UUID.randomUUID().toString(); } } } 实现:BaseMa...