feat: add getter and setter
This commit is contained in:
@@ -12,4 +12,20 @@ public class OrderDetail {
|
|||||||
|
|
||||||
private double price;
|
private double price;
|
||||||
|
|
||||||
|
public int getOrderId() { return orderId; }
|
||||||
|
|
||||||
|
public void setOrderId( int orderId ) { this.orderId = orderId; }
|
||||||
|
|
||||||
|
public int getMenuItemId() { return menuItemId; }
|
||||||
|
|
||||||
|
public void setMenuItemId(int menuItemId) { this.menuItemId = menuItemId; }
|
||||||
|
|
||||||
|
public int getQuantity() { return quantity; }
|
||||||
|
|
||||||
|
public void setQuantity(int quantity) { this.quantity = quantity; }
|
||||||
|
|
||||||
|
public double getPrice() { return price; }
|
||||||
|
|
||||||
|
public void setPrice(double price) { this.price = price; }
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user