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

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

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

origin: org.grails/grails-hibernate

private static String getJoinedSubClassTableName(
    GrailsDomainClass sub, PersistentClass model, Table denormalizedSuperTable,
    Mappings mappings, String sessionFactoryBeanName) {
  String logicalTableName = StringHelper.unqualify(model.getEntityName());
  String physicalTableName = getTableName(sub, sessionFactoryBeanName);
  mappings.addTableBinding(mappings.getSchemaName(), mappings.getCatalogName(), logicalTableName, physicalTableName, denormalizedSuperTable);
  return physicalTableName;
}
origin: org.grails/grails-datastore-gorm-hibernate-core

protected String getJoinedSubClassTableName(
    HibernatePersistentEntity sub, PersistentClass model, Table denormalizedSuperTable,
    Mappings mappings, String sessionFactoryBeanName) {
  String logicalTableName = unqualify(model.getEntityName());
  String physicalTableName = getTableName(sub, sessionFactoryBeanName);
  mappings.addTableBinding(mappings.getSchemaName(), mappings.getCatalogName(), logicalTableName, physicalTableName, denormalizedSuperTable);
  return physicalTableName;
}
origin: org.hibernate/com.springsource.org.hibernate

mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
origin: org.hibernate/com.springsource.org.hibernate.core

mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

private static String getClassTableName(
    PersistentClass model, Element node, String schema, String catalog, Table denormalizedSuperTable,
    Mappings mappings
) {
  Attribute tableNameNode = node.attribute( "table" );
  String logicalTableName;
  String physicalTableName;
  if ( tableNameNode == null ) {
    logicalTableName = StringHelper.unqualify( model.getEntityName() );
    physicalTableName = mappings.getNamingStrategy().classToTableName( model.getEntityName() );
  }
  else {
    logicalTableName = tableNameNode.getValue();
    physicalTableName = mappings.getNamingStrategy().tableName( logicalTableName );
  }
  mappings.addTableBinding( schema, catalog, logicalTableName, physicalTableName, denormalizedSuperTable );
  return physicalTableName;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static String getClassTableName(
    PersistentClass model,
    Element node,
    String schema,
    String catalog,
    Table denormalizedSuperTable,
    Mappings mappings) {
  Attribute tableNameNode = node.attribute( "table" );
  String logicalTableName;
  String physicalTableName;
  if ( tableNameNode == null ) {
    logicalTableName = StringHelper.unqualify( model.getEntityName() );
    physicalTableName = mappings.getNamingStrategy().classToTableName( model.getEntityName() );
  }
  else {
    logicalTableName = tableNameNode.getValue();
    physicalTableName = mappings.getNamingStrategy().tableName( logicalTableName );
  }
  mappings.addTableBinding( schema, catalog, logicalTableName, physicalTableName, denormalizedSuperTable );
  return physicalTableName;
}
origin: org.hibernate/com.springsource.org.hibernate

private static String getClassTableName(
    PersistentClass model,
    Element node,
    String schema,
    String catalog,
    Table denormalizedSuperTable,
    Mappings mappings) {
  Attribute tableNameNode = node.attribute( "table" );
  String logicalTableName;
  String physicalTableName;
  if ( tableNameNode == null ) {
    logicalTableName = StringHelper.unqualify( model.getEntityName() );
    physicalTableName = mappings.getNamingStrategy().classToTableName( model.getEntityName() );
  }
  else {
    logicalTableName = tableNameNode.getValue();
    physicalTableName = mappings.getNamingStrategy().tableName( logicalTableName );
  }
  mappings.addTableBinding( schema, catalog, logicalTableName, physicalTableName, denormalizedSuperTable );
  return physicalTableName;
}
origin: org.hibernate/com.springsource.org.hibernate.core

mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
origin: org.hibernate/com.springsource.org.hibernate

mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
origin: com.manydesigns/portofino-database

mappings.addTableBinding(aTable.getSchemaName(), null,
    aTable.getTableName(), aTable.getTableName(), null);
origin: ManyDesigns/Portofino

mappings.addTableBinding(aTable.getSchemaName(), null,
    aTable.getTableName(), aTable.getTableName(), null);
org.hibernate.cfgMappingsaddTableBinding

Javadoc

Adds a table binding to this repository.

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.
  • 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.
  • addFilterDefinition
    Adds a filter definition to this repository.
  • addDenormalizedTable,
  • addFilterDefinition,
  • addTypeDef,
  • addUniquePropertyReference,
  • getObjectNameNormalizer,
  • setAutoImport,
  • addColumnBinding,
  • addPropertyReference,
  • addQuery

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BoxLayout (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
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