Spring jdbc tools for crud operations.
- Easy CRUD operations.
- Supports Java persistent api annotation.
JdbcTemplatePlus
int insert(Object data);
int deleteById(Object id, Class<?> entityClass); // deleteByIds
int updateById(Object data);
T findById(Object id, Class<T> entityClass); // findByIds
OR JdbcTemplateUtils
PreparedSql parseInsert(Object data);
PreparedSql parseDelete(Object id, Class<?> entityClass);
PreparedSql parseUpdate(Object data);
PreparedSql parseFind(Object id, Class<?> entityClass);
RowMapper<T> parseRowMapper(Class<T> entityClass);
- @Table: custom table name.
- @Column: custom column name.
- @Id: identify primary key, default field named 'id'.