public void addAuditingOverrides(AuditOverridesAttribute annotationOverrides) { if (annotationOverrides != null) { foreach (AuditOverrideAttribute attrib in annotationOverrides.value) { addAuditingOverride(attrib); } } }
/*** * Add the {@link org.hibernate.envers.AuditOverride} annotations. * * @param property the property being processed * @param propertyData the Envers auditing data for this property */ private void AddPropertyAuditingOverrides(PropertyInfo property, PropertyAuditingData propertyData) { AuditOverrideAttribute annotationOverride = (AuditOverrideAttribute)Attribute.GetCustomAttribute(property, typeof(AuditOverrideAttribute));; if (annotationOverride != null) { propertyData.addAuditingOverride(annotationOverride); } AuditOverridesAttribute annotationOverrides = (AuditOverridesAttribute)Attribute.GetCustomAttribute(property, typeof(AuditOverridesAttribute));; if (annotationOverrides != null) { propertyData.addAuditingOverrides(annotationOverrides); } }