Package org.hibernate.envers

Examples of org.hibernate.envers.Audited.modStore()


      // 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 {
View Full Code Here


  private ModificationStore getDefaultAudited(XClass clazz) {
    final Audited defaultAudited = clazz.getAnnotation( Audited.class );

    if ( defaultAudited != null ) {
      return defaultAudited.modStore();
    }
    else {
      return null;
    }
  }
View Full Code Here

  private ModificationStore getDefaultAudited(XClass clazz) {
    Audited defaultAudited = clazz.getAnnotation(Audited.class);

    if (defaultAudited != null) {
      return defaultAudited.modStore();
    } else {
      return null;
    }
  }
View Full Code Here

      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;
    //Audited aud = property.getAnnotation(Audited.class);
    if (aud != null) {
      propertyData.setStore(aud.modStore());
      propertyData.setRelationTargetAuditMode(aud.targetAuditMode());
      return true;
    } else {
      return false;
    }
View Full Code Here

      // 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

    // Checking if this property is explicitly audited or if all properties are.
    Audited aud = property.getAnnotation(Audited.class);
    Versioned ver = property.getAnnotation(Versioned.class);
    if (aud != null) {
      propertyData.setStore(aud.modStore());
      propertyData.setRelationTargetAuditMode(aud.targetAuditMode());
    } else if (ver != null) {
      propertyData.setStore(ModificationStore.FULL);
    } else {
      if (defaultStore != null) {
View Full Code Here

  private ModificationStore getDefaultAudited(XClass clazz) {
    Audited defaultAudited = clazz.getAnnotation(Audited.class);

    if (defaultAudited != null) {
      return defaultAudited.modStore();
    } else {
      return null;
    }
  }
View Full Code Here

  protected boolean checkAudited(XProperty property,
      PropertyAuditingData propertyData, Audited allClassAudited) {
    // Checking if this property is explicitly audited or if all properties are.
    Audited aud = property.getAnnotation(Audited.class);
    if (aud != null) {
      propertyData.setStore(aud.modStore());
      propertyData.setRelationTargetAuditMode(aud.targetAuditMode());
      propertyData.setUsingModifiedFlag(checkUsingModifiedFlag(aud));
    } else {
      propertyData.setStore(ModificationStore.FULL);
   
View Full Code Here

      // 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
Copyright © 2018 www.massapi.com. 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.