https://github.com/lkqm/spring-jdbc-tools
Spring jdbc tools for crud operations.
https://github.com/lkqm/spring-jdbc-tools
spring-jdbc spring-jdbc-plus spring-jdbc-tools
Last synced: about 2 months ago
JSON representation
Spring jdbc tools for crud operations.
- Host: GitHub
- URL: https://github.com/lkqm/spring-jdbc-tools
- Owner: lkqm
- Created: 2020-08-16T14:07:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T15:50:10.000Z (about 4 years ago)
- Last Synced: 2023-06-30T19:38:08.539Z (almost 2 years ago)
- Topics: spring-jdbc, spring-jdbc-plus, spring-jdbc-tools
- Language: Java
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-jdbc-tools 
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 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 parseRowMapper(Class entityClass);
```# Java Persistent API
- @Table: custom table name.
- @Column: custom column name.
- @Id: identify primary key, default field named 'id'.