@ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceDiscount addCommerceDiscount ( CommerceDiscount commerceDiscount ) { commerceDiscount . setNew ( true ) ; return commerceDiscountPersistence . update ( commerceDiscount ) ; }
Adds the commerce discount to the database . Also notifies the appropriate model listeners .