lkqm / spring-jdbc-tools

Spring jdbc tools for crud operations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-jdbc-tools Maven Central

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'.

About

Spring jdbc tools for crud operations.


Languages

Language:Java 100.0%