@Entity public class CategoryProductXrefImpl extends Object implements CategoryProductXref
Category.
This entity is only used for executing a named query.
If you want to add fields specific to your implementation of BroadLeafCommerce you should extend
this class and add your fields. If you need to make significant changes to the class then you
should implement your own version of Category.
Category}, {@link ProductImpl},
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Category |
category |
protected Boolean |
defaultReference |
protected BigDecimal |
displayOrder
The display order.
|
protected Long |
id |
protected Product |
product
The product.
|
| Constructor and Description |
|---|
CategoryProductXrefImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends CategoryProductXref> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
boolean |
equals(Object o) |
Category |
getCategory()
Gets the category.
|
Boolean |
getDefaultReference()
Specifies the default reference between a category and a product.
|
BigDecimal |
getDisplayOrder()
Gets the display order.
|
Long |
getId() |
Product |
getProduct()
Gets the product.
|
int |
hashCode() |
void |
setCategory(Category category)
Sets the category.
|
void |
setDefaultReference(Boolean defaultReference) |
void |
setDisplayOrder(BigDecimal displayOrder)
Sets the display order.
|
void |
setId(Long id) |
void |
setProduct(Product product)
Sets the product.
|
protected Long id
protected Category category
protected Product product
protected BigDecimal displayOrder
protected Boolean defaultReference
public BigDecimal getDisplayOrder()
CategoryProductXrefgetDisplayOrder in interface CategoryProductXrefpublic void setDisplayOrder(BigDecimal displayOrder)
CategoryProductXrefsetDisplayOrder in interface CategoryProductXrefdisplayOrder - the new display orderpublic Category getCategory()
CategoryProductXrefgetCategory in interface CategoryProductXrefpublic void setCategory(Category category)
CategoryProductXrefsetCategory in interface CategoryProductXrefcategory - the new categorypublic Product getProduct()
CategoryProductXrefgetProduct in interface CategoryProductXrefpublic void setProduct(Product product)
CategoryProductXrefsetProduct in interface CategoryProductXrefproduct - the new productpublic Long getId()
getId in interface CategoryProductXrefpublic void setId(Long id)
setId in interface CategoryProductXrefpublic Boolean getDefaultReference()
CategoryProductXrefProductImpl.getDefaultCategory()getDefaultReference in interface CategoryProductXrefProductImpl.getCategory()public void setDefaultReference(Boolean defaultReference)
setDefaultReference in interface CategoryProductXrefpublic <G extends CategoryProductXref> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<CategoryProductXref>CloneNotSupportedExceptionCopyright © 2017. All rights reserved.