import java.util.List;
import org.springframework.dao.DataAccessException;
import com.yuanchuangyun.framework.entity.baseEntity;
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;
}
import java.util.List;
import com.yuanchuangyun.framework.entity.baseEntity;
import com.yuanchuangyun.framework.exception.ServiceException;
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;
}
public class ServiceException extends RuntimeException
{
private static final long serialVersionUID = -2440105546095427374L;
public ServiceException()
{
super();
}
public ServiceException(String message)
{
super(message);
}
public ServiceException(String message, Throwable cause)
{
super(message, cause);
}
public ServiceException(Throwable cause)
{
super(cause);
}
}