欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

商品浏览系统之商品实体类设计 博客分类: java 商品浏览系统实体类 

程序员文章站 2024-02-12 15:59:10
...
一 商品实体类代码
package entity;
 
//商品类
public class Items {
 
        private int id; // 商品编号
        private String name; // 商品名称
        private String city; // 产地
        private int price; // 价格
        private int number; // 库存
        private String picture; // 商品图片
 
        public int getId() {
                return id;
        }
 
        public void setId(int id) {
                this.id = id;
        }
 
        public String getName() {
                return name;
        }
 
        public void setName(String name) {
                this.name = name;
        }
 
        public String getCity() {
                return city;
        }
 
        public void setCity(String city) {
                this.city = city;
        }
 
        public int getPrice() {
                return price;
        }
 
        public void setPrice(int price) {
                this.price = price;
        }
 
        public int getNumber() {
                return number;
        }
 
        public void setNumber(int number) {
                this.number = number;
        }
 
        public String getPicture() {
                return picture;
        }
 
        public void setPicture(String picture) {
                this.picture = picture;
        }
 

 

}