org.broadleafcommerce.core.catalog.domain
Class CategoryProductXrefImpl

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.CategoryProductXrefImpl
All Implemented Interfaces:
Serializable, CategoryProductXref

@Entity
public class CategoryProductXrefImpl
extends Object
implements CategoryProductXref

The Class CategoryProductXrefImpl is the default implmentation of 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.

This implementation uses a Hibernate implementation of JPA configured through annotations. The Entity references the following tables: BLC_CATEGORY_PRODUCT_XREF,

Author:
btaylor
See Also:
Category}, {@link ProductImpl}, Serialized Form

Field Summary
protected  Category category
           
protected  BigDecimal displayOrder
          The display order.
protected  Long id
           
protected  Product product
          The product.
 
Constructor Summary
CategoryProductXrefImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 Category getCategory()
          Gets the category.
 BigDecimal getDisplayOrder()
          Gets the display order.
 Long getId()
           
 Product getProduct()
          Gets the product.
 int hashCode()
           
 void setCategory(Category category)
          Sets the category.
 void setDisplayOrder(BigDecimal displayOrder)
          Sets the display order.
 void setId(Long id)
           
 void setProduct(Product product)
          Sets the product.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

category

protected Category category

product

protected Product product
The product.


displayOrder

protected BigDecimal displayOrder
The display order.

Constructor Detail

CategoryProductXrefImpl

public CategoryProductXrefImpl()
Method Detail

getDisplayOrder

public BigDecimal getDisplayOrder()
Description copied from interface: CategoryProductXref
Gets the display order.

Specified by:
getDisplayOrder in interface CategoryProductXref
Returns:
the display order

setDisplayOrder

public void setDisplayOrder(BigDecimal displayOrder)
Description copied from interface: CategoryProductXref
Sets the display order.

Specified by:
setDisplayOrder in interface CategoryProductXref
Parameters:
displayOrder - the new display order

getCategory

public Category getCategory()
Description copied from interface: CategoryProductXref
Gets the category.

Specified by:
getCategory in interface CategoryProductXref
Returns:
the category

setCategory

public void setCategory(Category category)
Description copied from interface: CategoryProductXref
Sets the category.

Specified by:
setCategory in interface CategoryProductXref
Parameters:
category - the new category

getProduct

public Product getProduct()
Description copied from interface: CategoryProductXref
Gets the product.

Specified by:
getProduct in interface CategoryProductXref
Returns:
the product

setProduct

public void setProduct(Product product)
Description copied from interface: CategoryProductXref
Sets the product.

Specified by:
setProduct in interface CategoryProductXref
Parameters:
product - the new product

getId

public Long getId()
Specified by:
getId in interface CategoryProductXref

setId

public void setId(Long id)
Specified by:
setId in interface CategoryProductXref

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.