generation of the order entities