java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.product.option.JpaItemChoice
All Implemented Interfaces:
Serializable

@Embeddable public class JpaItemChoice extends Object implements Serializable
Persistent counterpart to ItemChoice.

For details about why this class is @Embeddable, see the class-level javadoc of JpaProductOption.

Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • JpaItemChoice

      public JpaItemChoice()
  • Method Details

    • setOverridePrice

      public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
    • getOverridePrice

      public javax.money.MonetaryAmount getOverridePrice()
    • setCurrency

      public void setCurrency(javax.money.CurrencyUnit currency)
    • getChoiceKey

      public String getChoiceKey()
    • getTargetType

      public String getTargetType()
    • getSelectionType

      public String getSelectionType()
    • getMaximumQuantity

      public Integer getMaximumQuantity()
    • getMinimumQuantity

      @Nullable public Integer getMinimumQuantity()
    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
    • getDiscountAllowed

      public Boolean getDiscountAllowed()
    • getPricingKey

      public String getPricingKey()
    • getCategoryContextId

      public String getCategoryContextId()
    • getDefaultProductInCategoryContextId

      public String getDefaultProductInCategoryContextId()
    • getDefaultProductContextId

      public String getDefaultProductContextId()
    • getDefaultVariantContextId

      public String getDefaultVariantContextId()
    • getSpecificChoices

      public List<JpaSpecificItemChoice> getSpecificChoices()
    • getSpecificItemChoice

      public JpaSpecificItemChoice getSpecificItemChoice()
    • getAttributes

      public Map<String,Object> getAttributes()
    • setChoiceKey

      public void setChoiceKey(String choiceKey)
    • setTargetType

      public void setTargetType(String targetType)
    • setSelectionType

      public void setSelectionType(String selectionType)
    • setMaximumQuantity

      public void setMaximumQuantity(Integer maximumQuantity)
    • setMinimumQuantity

      public void setMinimumQuantity(@Nullable Integer minimumQuantity)
    • setDiscountAllowed

      public void setDiscountAllowed(Boolean discountAllowed)
    • setPricingKey

      public void setPricingKey(String pricingKey)
    • setCategoryContextId

      public void setCategoryContextId(String categoryContextId)
    • setDefaultProductInCategoryContextId

      public void setDefaultProductInCategoryContextId(String defaultProductInCategoryContextId)
    • setDefaultProductContextId

      public void setDefaultProductContextId(String defaultProductContextId)
    • setDefaultVariantContextId

      public void setDefaultVariantContextId(String defaultVariantContextId)
    • setSpecificChoices

      public void setSpecificChoices(List<JpaSpecificItemChoice> specificChoices)
    • setSpecificItemChoice

      public void setSpecificItemChoice(JpaSpecificItemChoice specificItemChoice)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
    • toString

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

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object