TRUNK-4287: Changed the methods in the OrderDAO.java and in the HibernateOrderDAO.java implementation