Package org.hibernate.envers.internal.entities.mapper.id

Examples of org.hibernate.envers.internal.entities.mapper.id.IdMapper


      // In case of a fake many-to-one bidirectional relation, we have to generate a mapper which maps
      // the mapped-by property name to the id of the related entity (which is the owner of the collection).
      final String auditMappedBy = propertyAuditingData.getAuditMappedBy();

      // Creating a prefixed relation mapper.
      final IdMapper relMapper = referencingIdMapping.getIdMapper().prefixMappedProperties(
          MappingTools.createToOneRelationPrefix( auditMappedBy )
      );

      fakeBidirectionalRelationMapper = new ToOneIdMapper(
          relMapper,
View Full Code Here


    );

    final String lastPropertyPrefix = MappingTools.createToOneRelationPrefix( propertyAuditingData.getName() );

    // Generating the id mapper for the relation
    final IdMapper relMapper = idMapping.getIdMapper().prefixMappedProperties( lastPropertyPrefix );

    // Storing information about this relation
    mainGenerator.getEntitiesConfigurations().get( entityName ).addToOneRelation(
        propertyAuditingData.getName(), referencedEntityName, relMapper,
        insertable, MappingTools.ignoreNotFound( value )
View Full Code Here

    final String lastPropertyPrefix = MappingTools.createToOneRelationPrefix( owningReferencePropertyName );
    final String referencedEntityName = propertyValue.getReferencedEntityName();

    // Generating the id mapper for the relation
    final IdMapper ownedIdMapper = ownedIdMapping.getIdMapper().prefixMappedProperties( lastPropertyPrefix );

    // Storing information about this relation
    mainGenerator.getEntitiesConfigurations().get( entityName ).addToOneNotOwningRelation(
        propertyAuditingData.getName(), owningReferencePropertyName, referencedEntityName,
        ownedIdMapper, MappingTools.ignoreNotFound( value )
View Full Code Here

    );

    final String lastPropertyPrefix = MappingTools.createToOneRelationPrefix( propertyAuditingData.getName() );

    // Generating the id mapper for the relation
    final IdMapper relMapper = idMapping.getIdMapper().prefixMappedProperties( lastPropertyPrefix );

    // Storing information about this relation
    mainGenerator.getEntitiesConfigurations().get( entityName ).addToOneRelation(
        propertyAuditingData.getName(), referencedEntityName, relMapper, insertable,
        MappingTools.ignoreNotFound( value )
View Full Code Here

      // In case of a fake many-to-one bidirectional relation, we have to generate a mapper which maps
      // the mapped-by property name to the id of the related entity (which is the owner of the collection).
      final String auditMappedBy = propertyAuditingData.getAuditMappedBy();

      // Creating a prefixed relation mapper.
      final IdMapper relMapper = referencingIdMapping.getIdMapper().prefixMappedProperties(
          MappingTools.createToOneRelationPrefix( auditMappedBy )
      );

      fakeBidirectionalRelationMapper = new ToOneIdMapper(
          relMapper,
View Full Code Here

TOP

Related Classes of org.hibernate.envers.internal.entities.mapper.id.IdMapper

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.