Examples of MiddleRelatedComponentMapper


Examples of org.hibernate.envers.entities.mapper.relation.component.MiddleRelatedComponentMapper

        MiddleIdData referencedIdData = new MiddleIdData(mainGenerator.getVerEntCfg(), referencedIdMapping,
                null, referencedEntityName);

        // Generating the element mapping.
        MiddleComponentData elementComponentData = new MiddleComponentData(
                new MiddleRelatedComponentMapper(referencedIdData), 0);

        // Generating the index mapping, if an index exists. It can only exists in case a javax.persistence.MapKey
        // annotation is present on the entity. So the middleEntityXml will be not be used. The queryGeneratorBuilder
        // will only be checked for nullnes.
        MiddleComponentData indexComponentData = addIndex(null, null);
View Full Code Here

Examples of org.hibernate.envers.entities.mapper.relation.component.MiddleRelatedComponentMapper

            MiddleIdData referencedIdData = new MiddleIdData(mainGenerator.getVerEntCfg(), referencedIdMapping,
                    prefixRelated, referencedEntityName);
            // And adding it to the generator builder.
            queryGeneratorBuilder.addRelation(referencedIdData);

            return new MiddleComponentData(new MiddleRelatedComponentMapper(referencedIdData),
                    queryGeneratorBuilder.getCurrentIndex());
        } else {
            // Last but one parameter: collection components are always insertable
            boolean mapped = mainGenerator.getBasicMetadataGenerator().addBasic(xmlMapping,
                    new PropertyAuditingData(prefix, "field", ModificationStore.FULL, RelationTargetAuditMode.AUDITED), value, null,
View Full Code Here

Examples of org.hibernate.envers.entities.mapper.relation.component.MiddleRelatedComponentMapper

        MiddleIdData referencedIdData = createMiddleIdData(referencedIdMapping,
                null, referencedEntityName);

        // Generating the element mapping.
        MiddleComponentData elementComponentData = new MiddleComponentData(
                new MiddleRelatedComponentMapper(referencedIdData), 0);

        // Generating the index mapping, if an index exists. It can only exists in case a javax.persistence.MapKey
        // annotation is present on the entity. So the middleEntityXml will be not be used. The queryGeneratorBuilder
        // will only be checked for nullnes.
        MiddleComponentData indexComponentData = addIndex(null, null);
View Full Code Here

Examples of org.hibernate.envers.entities.mapper.relation.component.MiddleRelatedComponentMapper

            MiddleIdData referencedIdData = createMiddleIdData(referencedIdMapping,
                    prefixRelated, referencedEntityName);
            // And adding it to the generator builder.
            queryGeneratorBuilder.addRelation(referencedIdData);

            return new MiddleComponentData(new MiddleRelatedComponentMapper(referencedIdData),
                    queryGeneratorBuilder.getCurrentIndex());
    } else if ( type instanceof ComponentType ) {
      // Collection of embeddable elements.
      final Component component = (Component) value;
      final MiddleEmbeddableComponentMapper componentMapper = new MiddleEmbeddableComponentMapper( new MultiPropertyMapper(), component.getComponentClassName() );
View Full Code Here

Examples of org.hibernate.envers.internal.entities.mapper.relation.component.MiddleRelatedComponentMapper

        null, referencedEntityName
    );

    // Generating the element mapping.
    final MiddleComponentData elementComponentData = new MiddleComponentData(
        new MiddleRelatedComponentMapper( referencedIdData ), 0
    );

    // Generating the index mapping, if an index exists. It can only exists in case a javax.persistence.MapKey
    // annotation is present on the entity. So the middleEntityXml will be not be used. The queryGeneratorBuilder
    // will only be checked for nullnes.
View Full Code Here

Examples of org.hibernate.envers.internal.entities.mapper.relation.component.MiddleRelatedComponentMapper

      );
      // And adding it to the generator builder.
      queryGeneratorBuilder.addRelation( referencedIdData );

      return new MiddleComponentData(
          new MiddleRelatedComponentMapper( referencedIdData ),
          queryGeneratorBuilder.getCurrentIndex()
      );
    }
    else if ( type instanceof ComponentType ) {
      // Collection of embeddable elements.
View Full Code Here

Examples of org.hibernate.envers.internal.entities.mapper.relation.component.MiddleRelatedComponentMapper

        null, referencedEntityName
    );

    // Generating the element mapping.
    final MiddleComponentData elementComponentData = new MiddleComponentData(
        new MiddleRelatedComponentMapper( referencedIdData ), 0
    );

    // Generating the index mapping, if an index exists. It can only exists in case a javax.persistence.MapKey
    // annotation is present on the entity. So the middleEntityXml will be not be used. The queryGeneratorBuilder
    // will only be checked for nullnes.
View Full Code Here

Examples of org.hibernate.envers.internal.entities.mapper.relation.component.MiddleRelatedComponentMapper

      );
      // And adding it to the generator builder.
      queryGeneratorBuilder.addRelation( referencedIdData );

      return new MiddleComponentData(
          new MiddleRelatedComponentMapper( referencedIdData ),
          queryGeneratorBuilder.getCurrentIndex()
      );
    }
    else if ( type instanceof ComponentType ) {
      // Collection of embeddable elements.
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.