spring-jdbc-tools ![Maven Central](https://camo.githubusercontent.com/d0eefec5fc6a4f7f9a7772c867378da93b46266b7e5ba09a695e864d23cc387e/68747470733a2f2f696d672e736869656c64732e696f2f6d6176656e2d63656e7472616c2f762f636f6d2e6769746875622e6c6b716d2f737072696e672d6a6462632d746f6f6c73)
Spring jdbc tools for crud operations.
Features
- Easy CRUD operations.
- Supports Java persistent api annotation.
Quick
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);
Java Persistent API
- @Table: custom table name.
- @Column: custom column name.
- @Id: identify primary key, default field named 'id'.