Package org.hibernate.envers

Examples of org.hibernate.envers.RelationTargetAuditMode


      String entityName, String referencedEntityName,
      PropertyAuditingData propertyAuditingData,
      boolean allowNotAuditedTarget) {
    EntityConfiguration configuration = getEntitiesConfigurations().get( referencedEntityName );
    if ( configuration == null ) {
      final RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get( referencedEntityName );

      if ( configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(
          relationTargetAuditMode
      ) ) {
View Full Code Here


    IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName,
                                             PropertyAuditingData propertyAuditingData,
                                             boolean allowNotAuditedTarget) {
        EntityConfiguration configuration = getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
            RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get(referencedEntityName);

      if (configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
        throw new MappingException("An audited relation from " + entityName + "."
            + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
View Full Code Here

    IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName,
                                             PropertyAuditingData propertyAuditingData,
                                             boolean allowNotAuditedTarget) {
        EntityConfiguration configuration = getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
            RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get(referencedEntityName);

      if (configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
        throw new MappingException("An audited relation from " + entityName + "."
            + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
View Full Code Here

    IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName,
                                             PropertyAuditingData propertyAuditingData,
                                             boolean allowNotAuditedTarget) {
        EntityConfiguration configuration = getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
            RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get(referencedEntityName);

      if (configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
        throw new MappingException("An audited relation from " + entityName + "."
            + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
View Full Code Here

      String entityName, String referencedEntityName,
      PropertyAuditingData propertyAuditingData,
      boolean allowNotAuditedTarget) {
    EntityConfiguration configuration = getEntitiesConfigurations().get( referencedEntityName );
    if ( configuration == null ) {
      final RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get( referencedEntityName );

      if ( configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(
          relationTargetAuditMode
      ) ) {
View Full Code Here

    IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName,
                                             PropertyAuditingData propertyAuditingData,
                                             boolean allowNotAuditedTarget) {
        EntityConfiguration configuration = getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
            RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get(referencedEntityName);

      if (configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
        throw new MappingException("An audited relation from " + entityName + "."
            + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
View Full Code Here

    IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName,
                                             PropertyAuditingData propertyAuditingData,
                                             boolean allowNotAuditedTarget) {
        EntityConfiguration configuration = getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
            RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get(referencedEntityName);

      if (configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
        throw new MappingException("An audited relation from " + entityName + "."
            + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
View Full Code Here

    IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName,
                                             PropertyAuditingData propertyAuditingData,
                                             boolean allowNotAuditedTarget) {
        EntityConfiguration configuration = getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
            RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get(referencedEntityName);

      if (configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
        throw new MappingException("An audited relation from " + entityName + "."
            + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
View Full Code Here

      String entityName, String referencedEntityName,
      PropertyAuditingData propertyAuditingData,
      boolean allowNotAuditedTarget) {
    EntityConfiguration configuration = getEntitiesConfigurations().get( referencedEntityName );
    if ( configuration == null ) {
      final RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
      configuration = getNotAuditedEntitiesConfigurations().get( referencedEntityName );

      if ( configuration == null || !allowNotAuditedTarget || !RelationTargetAuditMode.NOT_AUDITED.equals(
          relationTargetAuditMode
      ) ) {
View Full Code Here

    EntityConfiguration configuration = mainGenerator.getEntitiesConfigurations().get(referencedEntityName);
    if (configuration == null) {
      configuration = mainGenerator.getNotAuditedEntitiesConfigurations().get(referencedEntityName);
      if (configuration != null) {
        RelationTargetAuditMode relationTargetAuditMode = propertyAuditingData.getRelationTargetAuditMode();
        if (!RelationTargetAuditMode.NOT_AUDITED.equals(relationTargetAuditMode)) {
          throw new MappingException("An audited relation from " + entityName + "."
              + propertyAuditingData.getName() + " to a not audited entity " + referencedEntityName + "!"
              + ". Such mapping is possible, but has to be strictly defined using RelationTargetAuditMode.NOT_AUDITED in @Audited.");
        }
View Full Code Here

TOP

Related Classes of org.hibernate.envers.RelationTargetAuditMode

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.