Examples of TypeFactory


Examples of org.hibernate.type.TypeFactory

    }
    resolveCollectionElementTypeInformation( attributeBinding.getCollectionElement() );
  }

  private Type determineDefaultCollectionInformation(AbstractPluralAttributeBinding attributeBinding) {
    final TypeFactory typeFactory = metadata.getTypeResolver().getTypeFactory();
    switch ( attributeBinding.getAttribute().getNature() ) {
      case SET: {
        return typeFactory.set(
            attributeBinding.getAttribute().getName(),
            attributeBinding.getReferencedPropertyName()
        );
      }
      case BAG: {
        return typeFactory.bag(
            attributeBinding.getAttribute().getName(),
            attributeBinding.getReferencedPropertyName()
        );
      }
      default: {
View Full Code Here

Examples of org.hibernate.type.TypeFactory

    }
    resolveCollectionElementTypeInformation( attributeBinding.getCollectionElement() );
  }

  private Type determineDefaultCollectionInformation(AbstractPluralAttributeBinding attributeBinding) {
    final TypeFactory typeFactory = metadata.getTypeResolver().getTypeFactory();
    switch ( attributeBinding.getAttribute().getNature() ) {
      case SET: {
        return typeFactory.set(
            attributeBinding.getAttribute().getName(),
            attributeBinding.getReferencedPropertyName(),
            attributeBinding.getCollectionElement().getCollectionElementNature() == CollectionElementNature.COMPOSITE
        );
      }
      case BAG: {
        return typeFactory.bag(
            attributeBinding.getAttribute().getName(),
            attributeBinding.getReferencedPropertyName(),
            attributeBinding.getCollectionElement()
                .getCollectionElementNature() == CollectionElementNature.COMPOSITE
        );
View Full Code Here

Examples of org.mapstruct.ap.model.common.TypeFactory

    private final TypeFactory typeFactory;

    public DefaultModelElementProcessorContext(ProcessingEnvironment processingEnvironment, Options options) {
        this.processingEnvironment = processingEnvironment;
        this.messager = new DelegatingMessager( processingEnvironment.getMessager() );
        this.typeFactory = new TypeFactory(
            processingEnvironment.getElementUtils(),
            processingEnvironment.getTypeUtils()
        );
        this.options = options;
    }
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.