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 ) ); }
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 ) ); }
private Type buildType() { // TODO : temporary initial step towards HHH-1907 ComponentMetamodel metamodel = new ComponentMetamodel( this ); if ( isEmbedded() ) { return getMappings().getTypeResolver().getTypeFactory().embeddedComponent( metamodel ); } else { return getMappings().getTypeResolver().getTypeFactory().component( metamodel ); } }
public CollectionType getCollectionType() { if ( typeName == null ) { return getDefaultCollectionType(); } else { return mappings.getTypeResolver() .getTypeFactory() .customCollection( typeName, typeParameters, role, referencedPropertyName, isEmbedded() ); } }
public CollectionType getCollectionType() { if ( typeName == null ) { return getDefaultCollectionType(); } else { return mappings.getTypeResolver() .getTypeFactory() .customCollection( typeName, typeParameters, role, referencedPropertyName, isEmbedded() ); } }
private Type buildType() { // TODO : temporary initial step towards HHH-1907 ComponentMetamodel metamodel = new ComponentMetamodel( this ); if ( isEmbedded() ) { return getMappings().getTypeResolver().getTypeFactory().embeddedComponent( metamodel ); } else { return getMappings().getTypeResolver().getTypeFactory().component( metamodel ); } }
private EntityType getEntityType() { return mappings.getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), null, false, false, isEmbedded(), isIgnoreNotFound(), false ); }
private EntityType getEntityType() { return mappings.getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), null, false, false, isEmbedded(), isIgnoreNotFound(), false ); }
private static void bindFilterDef(FilterDef defAnn, Mappings mappings) { Map<String, org.hibernate.type.Type> params = new HashMap<String, org.hibernate.type.Type>(); for ( ParamDef param : defAnn.parameters() ) { params.put( param.name(), mappings.getTypeResolver().heuristicType( param.type() ) ); } FilterDefinition def = new FilterDefinition( defAnn.name(), defAnn.defaultCondition(), params ); LOG.debugf( "Binding filter definition: %s", def.getFilterName() ); mappings.addFilterDefinition( def ); }
private static void bindFilterDef(FilterDef defAnn, Mappings mappings) { Map<String, org.hibernate.type.Type> params = new HashMap<String, org.hibernate.type.Type>(); for ( ParamDef param : defAnn.parameters() ) { params.put( param.name(), mappings.getTypeResolver().heuristicType( param.type() ) ); } FilterDefinition def = new FilterDefinition( defAnn.name(), defAnn.defaultCondition(), params ); LOG.debugf( "Binding filter definition: %s", def.getFilterName() ); mappings.addFilterDefinition( def ); }
public CollectionType getDefaultCollectionType() throws MappingException { return getMappings().getTypeResolver() .getTypeFactory() .list( getRole(), getReferencedPropertyName(), isEmbedded() ); }
public CollectionType getDefaultCollectionType() { return getMappings().getTypeResolver() .getTypeFactory() .bag( getRole(), getReferencedPropertyName(), isEmbedded() ); }
public CollectionType getDefaultCollectionType() { return getMappings().getTypeResolver() .getTypeFactory() .idbag( getRole(), getReferencedPropertyName(), isEmbedded() ); }
public CollectionType getDefaultCollectionType() { return getMappings().getTypeResolver() .getTypeFactory() .bag( getRole(), getReferencedPropertyName(), isEmbedded() ); }
public CollectionType getDefaultCollectionType() throws MappingException { return getMappings().getTypeResolver() .getTypeFactory() .list( getRole(), getReferencedPropertyName(), isEmbedded() ); }
public CollectionType getDefaultCollectionType() { return getMappings().getTypeResolver() .getTypeFactory() .idbag( getRole(), getReferencedPropertyName(), isEmbedded() ); }
@Override public CollectionType getDefaultCollectionType() throws MappingException { return getMappings().getTypeResolver() .getTypeFactory() .array( getRole(), getReferencedPropertyName(), isEmbedded(), getElementClass() ); }
@Override public CollectionType getDefaultCollectionType() throws MappingException { return getMappings().getTypeResolver() .getTypeFactory() .array( getRole(), getReferencedPropertyName(), isEmbedded(), getElementClass() ); }
public Type getType() throws MappingException { return getMappings().getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), getReferencedPropertyName(), isLazy(), isUnwrapProxy(), isEmbedded(), isIgnoreNotFound(), isLogicalOneToOne ); }
public Type getType() throws MappingException { return getMappings().getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), getReferencedPropertyName(), isLazy(), isUnwrapProxy(), isEmbedded(), isIgnoreNotFound(), isLogicalOneToOne ); }