Class ProductAttributeImpl

java.lang.Object
org.broadleafcommerce.core.catalog.domain.ProductAttributeImpl
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<ProductAttribute>, org.broadleafcommerce.common.value.ValueAssignable<String>, ProductAttribute

@Entity public class ProductAttributeImpl extends Object implements ProductAttribute
The Class ProductAttributeImpl.
See Also:
  • Field Details

    • id

      protected Long id
      The id.
    • name

      protected String name
      The name.
    • value

      protected String value
      The value.
    • product

      protected Product product
      The product.
  • Constructor Details

    • ProductAttributeImpl

      public ProductAttributeImpl()
  • Method Details

    • getId

      public Long getId()
      Description copied from interface: ProductAttribute
      Gets the id.
      Specified by:
      getId in interface ProductAttribute
      Returns:
      the id
    • setId

      public void setId(Long id)
      Description copied from interface: ProductAttribute
      Sets the id.
      Specified by:
      setId in interface ProductAttribute
      Parameters:
      id - the new id
    • getValue

      public String getValue()
      Specified by:
      getValue in interface org.broadleafcommerce.common.value.ValueAssignable<String>
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface org.broadleafcommerce.common.value.ValueAssignable<String>
    • getName

      public String getName()
      Specified by:
      getName in interface org.broadleafcommerce.common.value.ValueAssignable<String>
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.broadleafcommerce.common.value.ValueAssignable<String>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getProduct

      public Product getProduct()
      Description copied from interface: ProductAttribute
      Gets the product.
      Specified by:
      getProduct in interface ProductAttribute
      Returns:
      the product
    • setProduct

      public void setProduct(Product product)
      Description copied from interface: ProductAttribute
      Sets the product.
      Specified by:
      setProduct in interface ProductAttribute
      Parameters:
      product - the new product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • createOrRetrieveCopyInstance

      public <G extends ProductAttribute> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
      Specified by:
      createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<ProductAttribute>
      Throws:
      CloneNotSupportedException