A commodity entity code
package
entity;
// commodity
public
class
Items {
private
int
id
;
// item number
private
String
name
;
// commodity name
private
String
city
;
// origin
private
int
price
;
// price
private
int
number
;
// inventory
private
String
picture
;
// Product 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;
}
}