import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
public class ProductGroupMapper {
public ProductGroupUI toUIBean(ProductGroup group) {
ProductGroupUI ui = null;
if (group != null) {
ui = new ProductGroupUI();
ui.setCreateadBy(group.getCreateadBy());
ui.setCreatedDate(group.getCreatedDate());
ui.setDescription(group.getDescription());
ui.setId(group.getId());
ui.setModifiedBy(group.getModifiedBy());
ui.setModifiedDate(group.getModifiedDate());
ui.setGroupName(group.getGroupName());
}
return ui;
}