Class Order

java.lang.Object
com.esprit.models.products.Order

@Entity public class Order extends Object
The Order class represents an order made by a client.
  • Field Details

    • id

      private Long id
    • orderDate

      private Date orderDate
    • status

      private String status
    • client

      private Client client
    • orderItems

      private List<OrderItem> orderItems
    • phoneNumber

      private int phoneNumber
    • address

      private String address
  • Constructor Details

    • Order

      public Order(Date orderDate, String status, Client client, int phoneNumber, String address)
      Constructor without id for creating new order instances.
      Parameters:
      orderDate - The date of the order.
      status - The status of the order.
      client - The client associated with the order.
      phoneNumber - The telephone number associated with the order.
      address - The address associated with the order.