public void addOrderQc() throws IOException { eOrderQc.setEEmployee(eEmployeeFacade.find(employeeId)); eOrderQc.setEOrder(eOrderFacade.find(requestorder.getOrderId())); eOrderQcFacade.create(eOrderQc); eOrderQc = new EOrderQc(); setTransaction(); }
public boolean setColor(OrderListClass order) { System.out.println("inside setcolor..............."); List<EOrderQc> qlist = em.createNamedQuery("EOrderQc.findByOrder") .setParameter("eOrder", eOrderFacade.find(order.getOrderId())) .getResultList(); renderRow = false; if (!qlist.isEmpty()) { renderRow = true; } return renderRow; }