Class CustomerAttributeImpl

java.lang.Object
org.broadleafcommerce.profile.core.domain.CustomerAttributeImpl
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<CustomerAttribute>, org.broadleafcommerce.common.value.ValueAssignable<String>, CustomerAttribute

@Entity public class CustomerAttributeImpl extends Object implements CustomerAttribute
See Also:
  • Field Details

    • id

      protected Long id
      The id.
    • name

      protected String name
      The name.
    • value

      protected String value
      The value.
    • customer

      protected Customer customer
      The customer.
  • Constructor Details

    • CustomerAttributeImpl

      public CustomerAttributeImpl()
  • Method Details

    • getId

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

      public void setId(Long id)
      Description copied from interface: CustomerAttribute
      Sets the id.
      Specified by:
      setId in interface CustomerAttribute
      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
    • getCustomer

      public Customer getCustomer()
      Description copied from interface: CustomerAttribute
      Gets the associated customer.
      Specified by:
      getCustomer in interface CustomerAttribute
      Returns:
      the customer
    • setCustomer

      public void setCustomer(Customer customer)
      Description copied from interface: CustomerAttribute
      Sets the associated customer.
      Specified by:
      setCustomer in interface CustomerAttribute
    • hashCode

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

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

      public <G extends CustomerAttribute> 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<CustomerAttribute>
      Throws:
      CloneNotSupportedException