Package org.hibernate.envers

Examples of org.hibernate.envers.Audited



  protected boolean checkAudited(XProperty property,
      PropertyAuditingData propertyData, Audited allClassAudited) {
    // Checking if this property is explicitly audited or if all properties are.
    Audited aud = (property.isAnnotationPresent(Audited.class)) ? (property.getAnnotation(Audited.class)) : allClassAudited;
    if (aud == null && overriddenAuditedProperties.contains(property) && !overriddenNotAuditedProperties.contains(property)) {
      // Assigning @Audited defaults. If anyone needs to customize those values in the future,
      // appropriate fields shall be added to @AuditOverride annotation.
      aud = DEFAULT_AUDITED;
    }
    if (aud != null) {
      propertyData.setStore(aud.modStore());
      propertyData.setRelationTargetAuditMode(aud.targetAuditMode());
      propertyData.setUsingModifiedFlag(checkUsingModifiedFlag(aud));
      return true;
    } else {
      return false;
    }
View Full Code Here

TOP

Related Classes of org.hibernate.envers.Audited

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.