Skip to content

Instantly share code, notes, and snippets.

@Edijun
Created April 30, 2019 06:23
Show Gist options
  • Save Edijun/c6f82e2eb9763d791555897e58903f8b to your computer and use it in GitHub Desktop.
Save Edijun/c6f82e2eb9763d791555897e58903f8b to your computer and use it in GitHub Desktop.
public class Product {
private String id;
private String name;
private Integer price;
private String description;
public Product(String id, String name, Integer price, String description) {
super();
this.id = id;
this.name = name;
this.price = price;
this.description = description;
}
public Product() {
super();
// TODO Auto-generated constructor stub
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
this.price = price;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "Product [id=" + id + ", name=" + name + ", price=" + price + ", description=" + description + "]";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment