Package org.hibernate.envers

Examples of org.hibernate.envers.AuditOverrides


   * @param clazz Source class.
   *
   * @return List of @AuditOverride annotations applied at class level.
   */
  private List<AuditOverride> computeAuditOverrides(XClass clazz) {
    final AuditOverrides auditOverrides = clazz.getAnnotation( AuditOverrides.class );
    final AuditOverride auditOverride = clazz.getAnnotation( AuditOverride.class );
    if ( auditOverrides == null && auditOverride != null ) {
      return Arrays.asList( auditOverride );
    }
    else if ( auditOverrides != null && auditOverride == null ) {
      return Arrays.asList( auditOverrides.value() );
    }
    else if ( auditOverrides != null && auditOverride != null ) {
      throw new MappingException(
          "@AuditOverrides annotation should encapsulate all @AuditOverride declarations. " +
              "Please revise Envers annotations applied to class " + clazz.getName() + "."
View Full Code Here


  private void addPropertyAuditingOverrides(XProperty property, PropertyAuditingData propertyData) {
    final AuditOverride annotationOverride = property.getAnnotation( AuditOverride.class );
    if ( annotationOverride != null ) {
      propertyData.addAuditingOverride( annotationOverride );
    }
    final AuditOverrides annotationOverrides = property.getAnnotation( AuditOverrides.class );
    if ( annotationOverrides != null ) {
      propertyData.addAuditingOverrides( annotationOverrides );
    }
  }
View Full Code Here

   * @param clazz Source class.
   *
   * @return List of @AuditOverride annotations applied at class level.
   */
  private List<AuditOverride> computeAuditOverrides(XClass clazz) {
    final AuditOverrides auditOverrides = clazz.getAnnotation( AuditOverrides.class );
    final AuditOverride auditOverride = clazz.getAnnotation( AuditOverride.class );
    if ( auditOverrides == null && auditOverride != null ) {
      return Arrays.asList( auditOverride );
    }
    else if ( auditOverrides != null && auditOverride == null ) {
      return Arrays.asList( auditOverrides.value() );
    }
    else if ( auditOverrides != null && auditOverride != null ) {
      throw new MappingException(
          "@AuditOverrides annotation should encapsulate all @AuditOverride declarations. " +
              "Please revise Envers annotations applied to class " + clazz.getName() + "."
View Full Code Here

  private void addPropertyAuditingOverrides(XProperty property, PropertyAuditingData propertyData) {
    final AuditOverride annotationOverride = property.getAnnotation( AuditOverride.class );
    if ( annotationOverride != null ) {
      propertyData.addAuditingOverride( annotationOverride );
    }
    final AuditOverrides annotationOverrides = property.getAnnotation( AuditOverrides.class );
    if ( annotationOverrides != null ) {
      propertyData.addAuditingOverrides( annotationOverrides );
    }
  }
View Full Code Here

  private void addPropertyAuditingOverrides(XProperty property, PropertyAuditingData propertyData) {
    AuditOverride annotationOverride = property.getAnnotation(AuditOverride.class);
    if (annotationOverride != null) {
      propertyData.addAuditingOverride(annotationOverride);
    }
    AuditOverrides annotationOverrides = property.getAnnotation(AuditOverrides.class);
    if (annotationOverrides != null) {
      propertyData.addAuditingOverrides(annotationOverrides);
    }
  }
View Full Code Here

    /**
     * @param clazz Source class.
     * @return List of @AuditOverride annotations applied at class level.
     */
    private List<AuditOverride> computeAuditOverrides(XClass clazz) {
        AuditOverrides auditOverrides = clazz.getAnnotation(AuditOverrides.class);
        AuditOverride auditOverride = clazz.getAnnotation(AuditOverride.class);
        if (auditOverrides == null && auditOverride != null) {
            return Arrays.asList(auditOverride);
        } else if (auditOverrides != null && auditOverride == null) {
            return Arrays.asList(auditOverrides.value());
        } else if (auditOverrides != null && auditOverride != null) {
            throw new MappingException("@AuditOverrides annotation should encapsulate all @AuditOverride declarations. " +
                                       "Please revise Envers annotations applied to class " + clazz.getName() + ".");
        }
        return Collections.EMPTY_LIST;
View Full Code Here

  private void addPropertyAuditingOverrides(XProperty property, PropertyAuditingData propertyData) {
    AuditOverride annotationOverride = property.getAnnotation(AuditOverride.class);
    if (annotationOverride != null) {
      propertyData.addAuditingOverride(annotationOverride);
    }
    AuditOverrides annotationOverrides = property.getAnnotation(AuditOverrides.class);
    if (annotationOverrides != null) {
      propertyData.addAuditingOverrides(annotationOverrides);
    }
  }
View Full Code Here

  private void addPropertyAuditingOverrides(XProperty property, PropertyAuditingData propertyData) {
    AuditOverride annotationOverride = property.getAnnotation(AuditOverride.class);
    if (annotationOverride != null) {
      propertyData.addAuditingOverride(annotationOverride);
    }
    AuditOverrides annotationOverrides = property.getAnnotation(AuditOverrides.class);
    if (annotationOverrides != null) {
      propertyData.addAuditingOverrides(annotationOverrides);
    }
  }
View Full Code Here

    /**
     * @param clazz Source class.
     * @return List of @AuditOverride annotations applied at class level.
     */
    private List<AuditOverride> computeAuditOverrides(XClass clazz) {
        AuditOverrides auditOverrides = clazz.getAnnotation(AuditOverrides.class);
        AuditOverride auditOverride = clazz.getAnnotation(AuditOverride.class);
        if (auditOverrides == null && auditOverride != null) {
            return Arrays.asList(auditOverride);
        } else if (auditOverrides != null && auditOverride == null) {
            return Arrays.asList(auditOverrides.value());
        } else if (auditOverrides != null && auditOverride != null) {
            throw new MappingException("@AuditOverrides annotation should encapsulate all @AuditOverride declarations. " +
                                       "Please revise Envers annotations applied to class " + clazz.getName() + ".");
        }
        return Collections.EMPTY_LIST;
View Full Code Here

  private void addPropertyAuditingOverrides(XProperty property, PropertyAuditingData propertyData) {
    AuditOverride annotationOverride = property.getAnnotation(AuditOverride.class);
    if (annotationOverride != null) {
      propertyData.addAuditingOverride(annotationOverride);
    }
    AuditOverrides annotationOverrides = property.getAnnotation(AuditOverrides.class);
    if (annotationOverrides != null) {
      propertyData.addAuditingOverrides(annotationOverrides);
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.envers.AuditOverrides

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.