Created
August 24, 2015 22:07
-
-
Save valokafor/12dbad3da8c337afb311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Calendar; | |
| /** | |
| * Created by Valentine on 8/22/2015. | |
| */ | |
| public class Product { | |
| private long id; | |
| private String productName; | |
| private String description; | |
| private double price; | |
| private String imagePath; | |
| private String categoryId; | |
| private Calendar dateAdded; | |
| private Calendar dateOfLastTransaction; | |
| public Product(){ | |
| } | |
| public Product(Product product){ | |
| this.id = product.getId(); | |
| this.productName = product.getProductName(); | |
| this.description = product.getDescription(); | |
| this.price = product.getPrice(); | |
| this.imagePath = product.getImagePath(); | |
| this.categoryId = product.getCategoryId(); | |
| this.dateAdded = product.getDateAdded(); | |
| this.dateOfLastTransaction = product.getDateOfLastTransaction(); | |
| } | |
| public long getId() { | |
| return id; | |
| } | |
| public void setId(long id) { | |
| this.id = id; | |
| } | |
| public String getProductName() { | |
| return productName; | |
| } | |
| public void setProductName(String productName) { | |
| this.productName = productName; | |
| } | |
| public String getDescription() { | |
| return description; | |
| } | |
| public void setDescription(String description) { | |
| this.description = description; | |
| } | |
| public double getPrice() { | |
| return price; | |
| } | |
| public void setPrice(double price) { | |
| this.price = price; | |
| } | |
| public String getImagePath() { | |
| return imagePath; | |
| } | |
| public void setImagePath(String imagePath) { | |
| this.imagePath = imagePath; | |
| } | |
| public String getCategoryId() { | |
| return categoryId; | |
| } | |
| public void setCategoryId(String categoryId) { | |
| this.categoryId = categoryId; | |
| } | |
| public Calendar getDateAdded() { | |
| return dateAdded; | |
| } | |
| public void setDateAdded(Calendar dateAdded) { | |
| this.dateAdded = dateAdded; | |
| } | |
| public Calendar getDateOfLastTransaction() { | |
| return dateOfLastTransaction; | |
| } | |
| public void setDateOfLastTransaction(Calendar dateOfLastTransaction) { | |
| this.dateOfLastTransaction = dateOfLastTransaction; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment