Skip to content

lkqm/spring-jdbc-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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