public class SalesOrderItemsMapper {
Logger logger = Logger.getLogger(SalesOrderItemsMapper.class);
public SalesOrderItemsUI toUIBean(SalesOrderItems data) {
SalesOrderItemsUI ui = new SalesOrderItemsUI();
ui.setDiscount(data.getDiscount());
ui.setId(data.getId());
ui.setProductName(data.getProduct().getProductName());
ui.setQuantity(data.getQuantity());
ui.setUnitPrice(data.getUnitPrice());
ui.setTotal(data.getTotal());
return ui;
}