Goods的实体类(JavaBean)
2018-05-22 本文已影响5人
Joy_yang17
package com.nsu.bean;
public class Goods {
private int id;
private String goodname;
private float price;
private int num;
/**
- @return the id
/
public int getId() {
return id;
}
/* - @param id the id to set
/
public void setId(int id) {
this.id = id;
}
/* - @return the goodname
/
public String getGoodname() {
return goodname;
}
/* - @param goodname the goodname to set
/
public void setGoodname(String goodname) {
this.goodname = goodname;
}
/* - @return the price
/
public float getPrice() {
return price;
}
/* - @param price the price to set
/
public void setPrice(float price) {
this.price = price;
}
/* - @return the num
/
public int getNum() {
return num;
}
/* - @param num the num to set
*/
public void setNum(int num) {
this.num = num;
}
}