order.java

来自「这是一个网上书店」· Java 代码 · 共 110 行

JAVA
110
字号
package com.ebookstore.dto;

import java.util.Date;

public class Order extends BaseDTO {

  // Fields

  private Integer orderId;

  private Integer userId;

  private Date    orderdate;

  private Double  totalprice;

  private String  shipaddress;

  private String  shipcity;

  private String  shiptoname;

  private String  status;

  // Constructors

  /** default constructor */
  public Order() {
  }

  /** full constructor */
  public Order(Integer userId, Date orderdate, Double totalprice, String shipaddress, String shipcity,
      String shiptoname, String status) {
    this.userId = userId;
    this.orderdate = orderdate;
    this.totalprice = totalprice;
    this.shipaddress = shipaddress;
    this.shipcity = shipcity;
    this.shiptoname = shiptoname;
    this.status = status;
  }

  // Property accessors

  public Integer getOrderId() {
    return this.orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }

  public Integer getUserId() {
    return this.userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Date getOrderdate() {
    return this.orderdate;
  }

  public void setOrderdate(Date orderdate) {
    this.orderdate = orderdate;
  }

  public Double getTotalprice() {
    return this.totalprice;
  }

  public void setTotalprice(Double totalprice) {
    this.totalprice = totalprice;
  }

  public String getShipaddress() {
    return this.shipaddress;
  }

  public void setShipaddress(String shipaddress) {
    this.shipaddress = shipaddress;
  }

  public String getShipcity() {
    return this.shipcity;
  }

  public void setShipcity(String shipcity) {
    this.shipcity = shipcity;
  }

  public String getShiptoname() {
    return this.shiptoname;
  }

  public void setShiptoname(String shiptoname) {
    this.shiptoname = shiptoname;
  }

  public String getStatus() {
    return this.status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?