import java.util.List;
public interface baseDaoMapper {
public T getById(PK id)throws DataAccessException;
public void save(T entity)throws DataAccessException;
public void update(T entity)throws DataAccessException;
public void deleteById(PK id)throws DataAccessException;
public List getAllData() throws DataAccessException;
public List getByEntity(T entity) throws DataAccessException;
public void deleteByIds(List ids)throws DataAccessException;
}
public class baseEntity implements java.io.Serializable{
private static final long serialVersionUID = 4831177830237254301L;
}
public interface baseService {
public T getById(PK id)throws ServiceException;
public void save(T entity)throws ServiceException;
public void update(T entity)throws ServiceException;
public List getAllData() throws ServiceException;
public List getByEntity(T entity) throws ServiceException;
public void deleteByIds(List ids)throws ServiceException;
}