DataJPA/src/main/kotlin/com/chantha/jdbc/jpa/view/Views.java
2020-05-15 17:20:27 +07:00

79 lines
1.6 KiB
Java

package com.chantha.jdbc.jpa.view;
import com.chantha.jdbc.jpa.model.Gender;
import java.util.Date;
public class Views {
public static class Public{
private Long Id;
private String cusName;
private Gender gender;
private int orderId;
private double amount;
private Date orderDate;
public Long getId() {
return Id;
}
public void setId(Long id) {
Id = id;
}
public String getCusName() {
return cusName;
}
public void setCusName(String cusName) {
this.cusName = cusName;
}
public Gender getGender() {
return gender;
}
public void setGender(Gender gender) {
this.gender = gender;
}
public int getOrderId() {
return orderId;
}
public void setOrderId(int orderId) {
this.orderId = orderId;
}
public double getAmount() {
return amount;
}
public void setAmount(double amount) {
this.amount = amount;
}
public Date getOrderDate() {
return orderDate;
}
public void setOrderDate(Date orderDate) {
this.orderDate = orderDate;
}
public Public() {
}
public Public(Long id, String cusName, Gender gender, int orderId, double amount, Date orderDate) {
Id = id;
this.cusName = cusName;
this.gender = gender;
this.orderId = orderId;
this.amount = amount;
this.orderDate = orderDate;
}
}
}