shoppingitembean.java
来自「JSF+Hibernate+Spring三层架构的一个例子」· Java 代码 · 共 43 行
JAVA
43 行
package pizzaria;
public class ShoppingItemBean {
private String productId;
private String productName;
private float price;
private int quantity;
public ShoppingItemBean(
String productId, String productName, float price, int quantity) {
this.productId = productId;
this.productName = productName;
this.price = price;
this.quantity = quantity;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
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 float getPrice() {
return price;
}
public void setPrice(float price) {
this.price = price;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?