Reputation: 195
/** <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?
getPersistenceContext()
//not sure where this method is coming from in this class, it appears to be repeated in every setter?setPropertyValue()
; //is this a hibernate method, don't see any package imported in the class?@Accessor(qualifier = "priceQuantity", type = Accessor.Type.SETTER)
//what this annotation means?Upvotes: 1
Views: 1212
Reputation: 66
Upvotes: 1