Skip to content

Instantly share code, notes, and snippets.

@safeJar
Created September 21, 2015 01:51
Show Gist options
  • Select an option

  • Save safeJar/2caccac7b5cb91c7cc19 to your computer and use it in GitHub Desktop.

Select an option

Save safeJar/2caccac7b5cb91c7cc19 to your computer and use it in GitHub Desktop.
mybatis 基本的模板 baseDao baseDaoImpl baseService baseServiceImpl ppuserDao ppuserDaoImpl
package com.intel.dao;
import java.util.List;
public interface BaseDao<T> {
public void insert(T model);
public void delete(int... ids);
public void update(T model);
public T get(int id);
public List<T> query(T model);
public int queryCount(T model);
public void insertBatch(List<T> list);
public void insertBatch(List<T> list, int flushSize);
public void updateBatch(List<T> list);
public void updateBatch(List<T> list, int flushSize);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment