public PaginatedList getOrdersByUsername(String username) {
return queryForPaginatedList("getOrdersByUsername", username, 10);
}
public Order getOrder(int orderId) {
Order order = null;
Object parameterObject = new Integer(orderId);
order = (Order) queryForObject("getOrder", parameterObject);
order.setLineItems(queryForList("getLineItemsByOrderId", new Integer(order.getOrderId())));
return order;
}