An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# spring-jdbc-tools ![Maven Central](https://img.shields.io/maven-central/v/com.github.lkqm/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'.