/** * Copyright (C) 2008 Maurice Zeijen <maurice@zeijen.net> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package example.hmp.model; import java.math.BigDecimal; import java.util.List; /** * @author <a href="mailto:maurice.zeijen@smies.com">maurice.zeijen@smies.com</a> * */ public class Product { private Long id; private String name; private String brand; private String category; private BigDecimal price; private int tax; private String guarantee; private List<Part> parts; private List<Spec> specs; /** * @return the id */ public Long getId() { return id; } /** * @param id the id to set */ public void setId(Long id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the brand */ public String getBrand() { return brand; } /** * @param brand the brand to set */ public void setBrand(String brand) { this.brand = brand; } /** * @return the category */ public String getCategory() { return category; } /** * @param category the category to set */ public void setCategory(String category) { this.category = category; } /** * @return the price */ public BigDecimal getPrice() { return price; } /** * @param price the price to set */ public void setPrice(BigDecimal price) { this.price = price; } /** * @return the tax */ public int getTax() { return tax; } /** * @param tax the tax to set */ public void setTax(int tax) { this.tax = tax; } /** * @return the guarantee */ public String getGuarantee() { return guarantee; } /** * @param guarantee the guarantee to set */ public void setGuarantee(String guarantee) { this.guarantee = guarantee; } /** * @return the parts */ public List<Part> getParts() { return parts; } /** * @param parts the parts to set */ public void setParts(List<Part> parts) { this.parts = parts; } /** * @return the specs */ public List<Spec> getSpecs() { return specs; } /** * @param specs the specs to set */ public void setSpecs(List<Spec> specs) { this.specs = specs; } @Override public String toString() { return "Product [id=" + id + ", name=" + name + ", brand=" + brand + ", category=" + category + ", guarantee=" + guarantee + ", parts=" + parts + ", price=" + price + ", specs=" + specs + ", tax=" + tax + "]"; } }