Package org.hibernate.envers.internal.entities

Examples of org.hibernate.envers.internal.entities.PropertyData


        propertyAuditingData.getName(), referencedEntityName, relMapper, insertable,
        MappingTools.ignoreNotFound( value )
    );

    // Adding mapper for the id
    final PropertyData propertyData = propertyAuditingData.getPropertyData();
    mapper.addComposite(
        propertyData,
        new OneToOnePrimaryKeyJoinColumnMapper( entityName, referencedEntityName, propertyData )
    );
  }
View Full Code Here


      fakeBidirectionalRelationMapper = new ToOneIdMapper(
          relMapper,
          // The mapper will only be used to map from entity to map, so no need to provide other details
          // when constructing the PropertyData.
          new PropertyData( auditMappedBy, null, null, null ),
          referencingEntityName, false
      );

      // Checking if there's an index defined. If so, adding a mapper for it.
      if ( propertyAuditingData.getPositionMappedBy() != null ) {
        final String positionMappedBy = propertyAuditingData.getPositionMappedBy();
        fakeBidirectionalRelationIndexMapper = new SinglePropertyMapper(
            new PropertyData(
                positionMappedBy,
                null,
                null,
                null
            )
View Full Code Here

    return new IdMappingData( mapper, origIdMapping, relIdMapping );
  }

  private PropertyData getIdPropertyData(Property property) {
    return new PropertyData(
        property.getName(), property.getName(), property.getPropertyAccessorName(),
        ModificationStore.FULL
    );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.envers.internal.entities.PropertyData

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.