com.quhaodian.data.rest.core.BaseResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discover-hibernate-common Show documentation
Show all versions of discover-hibernate-common Show documentation
discover-hibernate_common is a lib for hibernate
package com.quhaodian.data.rest.core;
import com.quhaodian.data.core.Pagination;
import com.quhaodian.data.rest.domain.AbstractPageVo;
/**
* 资源转换服务
*
* @param 目标
* @param 源对象
* @param 目标分页对象
* @author ada
*/
public abstract class BaseResource> {
public abstract Conver getConver();
public PVo page(Pagination pager) {
PVo result = getPageVo();
ConverUtils.coverpage(result, pager, getConver());
return result;
}
public abstract PVo getPageVo();
}