java.lang.Object
com.broadleafcommerce.catalogbrowse.service.provider.external.pricing.PricingTargetKey
All Implemented Interfaces:
Serializable

public class PricingTargetKey extends Object implements Serializable
We wrap the actual entity (Product, Variant, etc) with a PricingTargetKey to allow for when there are multiple instances of equivalent Priceable entities, e.g, when an ItemChoice is used by multiple different products. The PricingTargetKey will allow the Map of targets to hold these equivalent instances so that we can map the PriceInfos onto each instance instead of only the last instance added to the map. Otherwise, only one instance ends up in the map since they have the same hashCode and equals.
Author:
Nathan Moore (nathandmoore)
See Also: