sagar
sagar

Reputation: 195

Hybris ProductModel Class

/** <i>Generated constant</i> - Attribute key of <code>Product.priceQuantity</code> attribute defined at extension <code>catalog</code>. */

public static final String PRICEQUANTITY = "priceQuantity";

public class ProductModel extends ItemModel
{
    @Accessor(qualifier = "priceQuantity", type = Accessor.Type.SETTER) 
    public void setPriceQuantity(final Double value)    
    {
        getPersistenceContext().setPropertyValue(PRICEQUANTITY, value);
    }   

}

Hi All, I'm trying to understand the generated model class in SAP Hybris 6.2, this example is from from ProductModel class. Trying to understand this e.g. setter method, can anyone pls help in understanding the below questions?

Upvotes: 1

Views: 1212

Answers (1)

Hash
Hash

Reputation: 66

  • AbstractItemModel(ProductModel's super class) has getPersistenceContext() this method which returns its local variable ItemModelInternalContext

Upvotes: 1

Related Questions