@Entity public class Product extends StockEntityBean<Product>
| Constructor and Description |
|---|
Product()
Constructor.
|
Product(Product product)
Constructor from an other product object.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ProductAttributeDate> |
getAttributeDateList()
Returns dynamic attributes list.
|
Set<ProductAttribute> |
getAttributeList()
Get the product list.
|
Set<ProductAttributeNum> |
getAttributeNumList()
Returns dynamic attributes list.
|
Category |
getCategory()
Get the category linked to the product.
|
String |
getDescription()
Return the product description.
|
Integer |
getId()
Return the product id.
|
String |
getName()
Return the product name.
|
Float |
getPrice()
Return the price.
|
Provider |
getProvider()
Get the provider linked to the product.
|
void |
setAttributeDateList(Set<ProductAttributeDate> dateAttribute)
Sets the attribute date list.
|
void |
setAttributeList(Set<ProductAttribute> stringAttribute)
Sets the attribute list.
|
void |
setAttributeNumList(Set<ProductAttributeNum> numAttribute)
Set attribute list.
|
void |
setCategory(Category category)
Set the category linked to the product.
|
void |
setDescription(String description)
Set the product description.
|
void |
setId(Integer idProduct)
Set the product id.
|
void |
setName(String name)
Set the product name.
|
void |
setPrice(Float price)
Set the price.
|
void |
setProvider(Provider provider)
Set the provider linked to the product.
|
getAttributeDateMap, getAttributeMap, getAttributeNumMappublic Product()
public Product(Product product)
product - the productpublic Integer getId()
public void setId(Integer idProduct)
idProduct - the product idpublic String getDescription()
public void setDescription(String description)
description - the product descriptionpublic String getName()
public void setName(String name)
name - the product namepublic Float getPrice()
public void setPrice(Float price)
price - the pricepublic Category getCategory()
public void setCategory(Category category)
category - the categorypublic Provider getProvider()
public void setProvider(Provider provider)
provider - the providerpublic Set<ProductAttribute> getAttributeList()
getAttributeList in class StockEntityBean<Product>public void setAttributeList(Set<ProductAttribute> stringAttribute)
stringAttribute - the new attribute listpublic Set<ProductAttributeDate> getAttributeDateList()
getAttributeDateList in class StockEntityBean<Product>public void setAttributeDateList(Set<ProductAttributeDate> dateAttribute)
dateAttribute - the new attribute date listpublic Set<ProductAttributeNum> getAttributeNumList()
getAttributeNumList in class StockEntityBean<Product>public void setAttributeNumList(Set<ProductAttributeNum> numAttribute)
numAttribute - numAttributeCopyright © 2021 City of Paris. All rights reserved.