📄 product.java
字号:
package jdbcbook.shopping.form;
import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
public class Product extends ActionForm
{
// 主键
private int id;
public int getId( )
{
return this.id;
}
public void setId( int id )
{
this.id = id;
}
// 商品的名称
private String name;
public String getName( )
{
return this.name;
}
public void setName( String name )
{
this.name = name;
}
// 商品所属的分类
private int categoryid;
public int getCategoryid( )
{
return this.categoryid;
}
public void setCategoryid( int categoryid )
{
this.categoryid = categoryid;
}
// 商品的描述信息
private String desccn;
public String getDesccn( )
{
return this.desccn;
}
public void setDesccn( String desccn )
{
this.desccn = desccn;
}
// 商品的价格
private java.math.BigDecimal price;
public java.math.BigDecimal getPrice( )
{
return this.price;
}
public void setPrice( java.math.BigDecimal price )
{
this.price = price;
}
// 商品的生产厂家(在这里是出版社)
private String producer;
public String getProducer( )
{
return this.producer;
}
public void setProducer( String producer )
{
this.producer = producer;
}
// 商品的状态
private int status;
public int getStatus( )
{
return this.status;
}
public void setStatus( int status )
{
this.status = status;
}
// 商品的图片
private FormFile picture;
public FormFile getPicture()
{
return this.picture;
}
public void setPicture( FormFile picture )
{
this.picture = picture;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -