init
This commit is contained in:
93
src/main/java/com/example/template/OrderPlaced.java
Normal file
93
src/main/java/com/example/template/OrderPlaced.java
Normal file
@@ -0,0 +1,93 @@
|
||||
package com.example.template;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class OrderPlaced implements Serializable {
|
||||
|
||||
private String type;
|
||||
private String stateMessage = "주문이 들어옴";
|
||||
|
||||
private Long productId;
|
||||
private Long orderId;
|
||||
private String productName;
|
||||
private int quantity;
|
||||
private int price;
|
||||
private String customerName;
|
||||
private String customerAddr;
|
||||
|
||||
public OrderPlaced(){
|
||||
this.setType(this.getClass().getSimpleName());
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getStateMessage() {
|
||||
return stateMessage;
|
||||
}
|
||||
|
||||
public void setStateMessage(String stateMessage) {
|
||||
this.stateMessage = stateMessage;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Long orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public int getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantity(int quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public int getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(int price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getCustomerName() {
|
||||
return customerName;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName) {
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getCustomerAddr() {
|
||||
return customerAddr;
|
||||
}
|
||||
|
||||
public void setCustomerAddr(String customerAddr) {
|
||||
this.customerAddr = customerAddr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user