Tabnine Logo
Mappings.getTypeResolver
Code IndexAdd Tabnine to your IDE (free)

How to use
getTypeResolver
method
in
org.hibernate.cfg.Mappings

Best Java code snippets using org.hibernate.cfg.Mappings.getTypeResolver (Showing top 20 results out of 315)

origin: org.hibernate/com.springsource.org.hibernate

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 )
  );
}
origin: org.hibernate/com.springsource.org.hibernate.core

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 )
  );
}
origin: org.hibernate/com.springsource.org.hibernate

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 );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public CollectionType getCollectionType() {
  if ( typeName == null ) {
    return getDefaultCollectionType();
  }
  else {
    return mappings.getTypeResolver()
        .getTypeFactory()
        .customCollection( typeName, typeParameters, role, referencedPropertyName, isEmbedded() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public CollectionType getCollectionType() {
  if ( typeName == null ) {
    return getDefaultCollectionType();
  }
  else {
    return mappings.getTypeResolver()
        .getTypeFactory()
        .customCollection( typeName, typeParameters, role, referencedPropertyName, isEmbedded() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

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 );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private EntityType getEntityType() {
  return mappings.getTypeResolver().getTypeFactory().manyToOne(
      getReferencedEntityName(), 
      null, 
      false,
      false,
      isEmbedded(),
      isIgnoreNotFound(),
      false
    );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private EntityType getEntityType() {
  return mappings.getTypeResolver().getTypeFactory().manyToOne(
      getReferencedEntityName(), 
      null, 
      false,
      false,
      isEmbedded(),
      isIgnoreNotFound(),
      false
    );
}
origin: org.hibernate/com.springsource.org.hibernate.core

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 );
}
origin: org.hibernate/com.springsource.org.hibernate

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 );
}
origin: org.hibernate/com.springsource.org.hibernate

public CollectionType getDefaultCollectionType() throws MappingException {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .list( getRole(), getReferencedPropertyName(), isEmbedded() );
}

origin: org.hibernate/com.springsource.org.hibernate.core

public CollectionType getDefaultCollectionType() {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .bag( getRole(), getReferencedPropertyName(), isEmbedded() );
}
origin: org.hibernate/com.springsource.org.hibernate

public CollectionType getDefaultCollectionType() {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .idbag( getRole(), getReferencedPropertyName(), isEmbedded() );
}
origin: org.hibernate/com.springsource.org.hibernate

public CollectionType getDefaultCollectionType() {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .bag( getRole(), getReferencedPropertyName(), isEmbedded() );
}
origin: org.hibernate/com.springsource.org.hibernate.core

public CollectionType getDefaultCollectionType() throws MappingException {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .list( getRole(), getReferencedPropertyName(), isEmbedded() );
}

origin: org.hibernate/com.springsource.org.hibernate.core

public CollectionType getDefaultCollectionType() {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .idbag( getRole(), getReferencedPropertyName(), isEmbedded() );
}
origin: org.hibernate/com.springsource.org.hibernate

@Override
public CollectionType getDefaultCollectionType() throws MappingException {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .array( getRole(), getReferencedPropertyName(), isEmbedded(), getElementClass() );
}
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
public CollectionType getDefaultCollectionType() throws MappingException {
  return getMappings().getTypeResolver()
      .getTypeFactory()
      .array( getRole(), getReferencedPropertyName(), isEmbedded(), getElementClass() );
}
origin: org.hibernate/com.springsource.org.hibernate

public Type getType() throws MappingException {
  return getMappings().getTypeResolver().getTypeFactory().manyToOne(
      getReferencedEntityName(), 
      getReferencedPropertyName(),
      isLazy(),
      isUnwrapProxy(),
      isEmbedded(),
      isIgnoreNotFound(),
      isLogicalOneToOne
  );
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Type getType() throws MappingException {
  return getMappings().getTypeResolver().getTypeFactory().manyToOne(
      getReferencedEntityName(), 
      getReferencedPropertyName(),
      isLazy(),
      isUnwrapProxy(),
      isEmbedded(),
      isIgnoreNotFound(),
      isLogicalOneToOne
  );
}
org.hibernate.cfgMappingsgetTypeResolver

Javadoc

Retrieve the type resolver in effect.

Popular methods of Mappings

  • addClass
    Add entity mapping metadata.
  • addImport
    Adds an import (HQL entity rename) to the repository.
  • addTable
    Adds table metadata to this repository returning the created metadata instance.
  • getCatalogName
    Returns the currently bound default catalog name.
  • getClass
    Retrieves the entity mapping metadata for the given entity name.
  • getSchemaName
    Returns the currently bound default schema name.
  • addCollection
    Add collection mapping metadata to this repository.
  • addSecondPass
    Adds a second pass.
  • addTableBinding
    Adds a table binding to this repository.
  • getDefaultAccess
    Get the current default property access style.
  • isAutoImport
    Determine whether auto importing of entity names is currently enabled.
  • addDenormalizedTable
    Adds a 'denormalized table' to this repository.
  • isAutoImport,
  • addDenormalizedTable,
  • addFilterDefinition,
  • addTypeDef,
  • addUniquePropertyReference,
  • getObjectNameNormalizer,
  • setAutoImport,
  • addColumnBinding,
  • addPropertyReference,
  • addQuery

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Join (org.hibernate.mapping)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now