com.yuweix.kuafu.dao.hibernate.Dao Maven / Gradle / Ivy
package com.yuweix.kuafu.dao.hibernate;
import com.yuweix.kuafu.sharding.Shardable;
import java.io.Serializable;
/**
* @author yuwei
*/
public interface Dao extends Shardable {
T get(PK id);
T get(Object shardingVal, PK id);
void save(T t);
void update(T t);
void deleteByKey(PK id);
void deleteByKey(Object shardingVal, PK id);
void delete(T t);
}