public class Category extends AbstractVisiblyIdentifiedHibernateObject<Category> implements IItem, Comparable<Category>
visibleId
id
Constructor and Description |
---|
Category() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Category o) |
Integer |
getDisplayOrder() |
Image |
getImage() |
Category |
getItem() |
String |
getName() |
Category |
getParent() |
Short |
getPrep_time()
Get the default preparation time for products in this category
(see Products.getPrep_time).
|
Set<Product> |
getProducts() |
Set<Category> |
getSubcategories() |
List<Product> |
listProducts()
Lists all products which have this category assigned in their list of categories
and with inStock=true and displayOrder not equal 0.
|
static Category |
retrieveRoot() |
void |
setDisplayOrder(Integer displayOrder) |
void |
setImage(Image image) |
void |
setName(String name) |
void |
setParent(Category parent) |
void |
setPrep_time(Short prep_time)
Set the default preparation time for products in this category
(see Products.getPrep_time).
|
void |
setProducts(Set<Product> children) |
String |
toString() |
getVisibleId, setVisibleId
equals, getId, getVersion, hashCode, setId, setVersion
delete, getGetters, getKeyValue, merge, refresh, save
public List<Product> listProducts() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void setName(String name)
public Integer getDisplayOrder()
public void setDisplayOrder(Integer displayOrder)
public Category getParent()
public void setParent(Category parent)
public void setImage(Image image)
public static Category retrieveRoot()
public int compareTo(Category o)
compareTo
in interface Comparable<Category>
public Short getPrep_time()
public void setPrep_time(Short prep_time)
prep_time
- the default preparation time for products in this categoryCopyright © 2021. All rights reserved.