Package org.hibernate.type

Examples of org.hibernate.type.MetaType


  public Type getType() throws MappingException {
    return new AnyType(
      metaValues==null ?
        TypeFactory.heuristicType(metaTypeName) :
        new MetaType( metaValues, TypeFactory.heuristicType(metaTypeName) ),
        TypeFactory.heuristicType(identifierTypeName)
    );
  }
View Full Code Here


  public Type getType() throws MappingException {
    final Type metaType = getMappings().getTypeResolver().heuristicType( metaTypeName );

    return getMappings().getTypeResolver().getTypeFactory().any(
        metaValues == null ? metaType : new MetaType( metaValues, metaType ),
        getMappings().getTypeResolver().heuristicType( identifierTypeName )
    );
  }
View Full Code Here

    final Type discriminatorType = anyType.getDiscriminatorType();
    if ( ! MetaType.class.isInstance( discriminatorType ) ) {
      return Collections.emptyList();
    }

    final MetaType metaType = (MetaType) discriminatorType;
    final List<DiscriminatorMapping> discriminatorMappings = new ArrayList<DiscriminatorMapping>();
    for ( final Map.Entry<Object,String> entry : metaType.getDiscriminatorValuesToEntityNameMap().entrySet() ) {
      discriminatorMappings.add(
          new DiscriminatorMapping() {
            private final Object discriminatorValue = entry.getKey();
            private final String entityName = entry.getValue();
View Full Code Here

  public Type getType() throws MappingException {
    return new AnyType(
      metaValues==null ?
        TypeFactory.heuristicType(metaTypeName) :
        new MetaType( metaValues, TypeFactory.heuristicType(metaTypeName) ),
        TypeFactory.heuristicType(identifierTypeName)
    );
  }
View Full Code Here

  public Type getType() throws MappingException {
    return new AnyType(
      metaValues==null ?
        TypeFactory.heuristicType(metaTypeName) :
        new MetaType( metaValues, TypeFactory.heuristicType(metaTypeName) ),
        TypeFactory.heuristicType(identifierTypeName)
    );
  }
View Full Code Here

  public Type getType() throws MappingException {
    final Type metaType = getMappings().getTypeResolver().heuristicType( metaTypeName );

    return getMappings().getTypeResolver().getTypeFactory().any(
        metaValues == null ? metaType : new MetaType( metaValues, metaType ),
        getMappings().getTypeResolver().heuristicType( identifierTypeName )
    );
  }
View Full Code Here

  public Type getType() throws MappingException {
    final Type metaType = getMappings().getTypeResolver().heuristicType( metaTypeName );

    return getMappings().getTypeResolver().getTypeFactory().any(
        metaValues == null ? metaType : new MetaType( metaValues, metaType ),
        getMappings().getTypeResolver().heuristicType( identifierTypeName )
    );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.type.MetaType

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.