/* * The MIT License * * Copyright 2011 Michaël Schwartz <m.schwartz@epokmedia.fr>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package miage.ecom.web.view.vo; import miage.ecom.entity.Product; /** * * @author Schwartz Michaël <m.schwartz@epokmedia.fr> */ public class ProductVo extends ValueObject<Product> { public String image; public String name; public Long price; public Integer idCategory; public String reference; public Integer idProduct; public String description; public ProductVo() { } public ProductVo(Product product) throws Exception { this.extract(product); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Integer getIdCategory() { return idCategory; } public void setIdCategory(Integer idCategory) { this.idCategory = idCategory; } public Integer getIdProduct() { return idProduct; } public void setIdProduct(Integer idProduct) { this.idProduct = idProduct; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getPrice() { return price; } public void setPrice(Long price) { this.price = price; } public String getReference() { return reference; } public void setReference(String reference) { this.reference = reference; } }