Package org.hibernate.envers.entities.mapper.relation

Examples of org.hibernate.envers.entities.mapper.relation.SortedSetCollectionMapper


    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
View Full Code Here


    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
    boolean embeddableElementType = isEmbeddableElementType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite( propertyAuditingData.getPropertyData(), new SortedSetCollectionMapper(
          commonCollectionMapperData, TreeSet.class, SortedSetProxy.class, elementComponentData,
          propertyValue.getComparator(), embeddableElementType, embeddableElementType ) );
    } else if (type instanceof SetType) {
      currentMapper.addComposite( propertyAuditingData.getPropertyData(), new BasicCollectionMapper<Set>(
          commonCollectionMapperData, HashSet.class, SetProxy.class, elementComponentData,
View Full Code Here

    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
View Full Code Here

    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
View Full Code Here

    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
View Full Code Here

    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
View Full Code Here

    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
View Full Code Here

                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
    boolean embeddableElementType = isEmbeddableElementType();
        if (type instanceof SortedSetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
          new SortedSetCollectionMapper(commonCollectionMapperData,
              TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator(),
              embeddableElementType));
    } else if (type instanceof SetType) {
      currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
View Full Code Here

TOP

Related Classes of org.hibernate.envers.entities.mapper.relation.SortedSetCollectionMapper

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.