Package org.hibernate.type

Examples of org.hibernate.type.TypeFactory


  @Override
  public Type getType() throws MappingException {
    // TODO : temporary initial step towards HHH-1907
    final ComponentMetamodel metamodel = new ComponentMetamodel( this );
    final TypeFactory factory = getMappings().getTypeResolver().getTypeFactory();
    return isEmbedded() ? factory.embeddedComponent( metamodel ) : factory.component( metamodel );
  }
View Full Code Here


    }
    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

    }
    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

    }
    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

  }

  public Type getType() throws MappingException {
    // TODO : temporary initial step towards HHH-1907
    final ComponentMetamodel metamodel = new ComponentMetamodel( this );
    final TypeFactory factory = getMappings().getTypeResolver().getTypeFactory();
    return isEmbedded() ? factory.embeddedComponent( metamodel ) : factory.component( metamodel );
  }
View Full Code Here

  }

  public Type getType() throws MappingException {
    // TODO : temporary initial step towards HHH-1907
    final ComponentMetamodel metamodel = new ComponentMetamodel( this );
    final TypeFactory factory = getMappings().getTypeResolver().getTypeFactory();
    return isEmbedded() ? factory.embeddedComponent( metamodel ) : factory.component( metamodel );
  }
View Full Code Here

    }
    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.isEmbedded()
        );
      }
      case BAG: {
        return typeFactory.set(
            attributeBinding.getAttribute().getName(),
            attributeBinding.getReferencedPropertyName(),
            attributeBinding.isEmbedded()
        );
      }
View Full Code Here

TOP

Related Classes of org.hibernate.type.TypeFactory

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.