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

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

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

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

protected void addColumnBinding(SimpleValue value) {
  String logicalColumnName = mappings.getNamingStrategy()
      .logicalColumnName( this.logicalColumnName, propertyName );
  mappings.addColumnBinding( logicalColumnName, getMappingColumn(), value.getTable() );
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected void addColumnBinding(SimpleValue value) {
  String logicalColumnName = mappings.getNamingStrategy()
      .logicalColumnName( this.logicalColumnName, propertyName );
  mappings.addColumnBinding( logicalColumnName, getMappingColumn(), value.getTable() );
}
origin: org.hibernate/com.springsource.org.hibernate

      mappings.addColumnBinding( logicalColumnName, column, table );
  mappings.addColumnBinding( logicalColumnName, column, table );
column.setName( mappings.getNamingStrategy().propertyToColumnName( propertyPath ) );
String logicalName = mappings.getNamingStrategy().logicalColumnName( null, propertyPath );
mappings.addColumnBinding( logicalName, column, table );
origin: org.hibernate/com.springsource.org.hibernate.core

      mappings.addColumnBinding( logicalColumnName, column, table );
  mappings.addColumnBinding( logicalColumnName, column, table );
column.setName( mappings.getNamingStrategy().propertyToColumnName( propertyPath ) );
String logicalName = mappings.getNamingStrategy().logicalColumnName( null, propertyPath );
mappings.addColumnBinding( logicalName, column, table );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

      mappings.addColumnBinding( logicalColumnName, column, table );
  mappings.addColumnBinding( logicalColumnName, column, table );
column.setName( mappings.getNamingStrategy().propertyToColumnName( propertyPath ) );
String logicalName = mappings.getNamingStrategy().logicalColumnName( null, propertyPath );
mappings.addColumnBinding( logicalName, column, table );
origin: org.hibernate/com.springsource.org.hibernate

@Override
protected void addColumnBinding(SimpleValue value) {
  if ( StringHelper.isEmpty( mappedBy ) ) {
    String unquotedLogColName = StringHelper.unquote( getLogicalColumnName() );
    String unquotedRefColumn = StringHelper.unquote( getReferencedColumn() );
    String logicalColumnName = getMappings().getNamingStrategy()
        .logicalCollectionColumnName( unquotedLogColName, getPropertyName(), unquotedRefColumn );
    if ( StringHelper.isQuoted( getLogicalColumnName() ) || StringHelper.isQuoted( getLogicalColumnName() ) ) {
      logicalColumnName = StringHelper.quote( logicalColumnName );
    }
    getMappings().addColumnBinding( logicalColumnName, getMappingColumn(), value.getTable() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
protected void addColumnBinding(SimpleValue value) {
  if ( StringHelper.isEmpty( mappedBy ) ) {
    String unquotedLogColName = StringHelper.unquote( getLogicalColumnName() );
    String unquotedRefColumn = StringHelper.unquote( getReferencedColumn() );
    String logicalColumnName = getMappings().getNamingStrategy()
        .logicalCollectionColumnName( unquotedLogColName, getPropertyName(), unquotedRefColumn );
    if ( StringHelper.isQuoted( getLogicalColumnName() ) || StringHelper.isQuoted( getLogicalColumnName() ) ) {
      logicalColumnName = StringHelper.quote( logicalColumnName );
    }
    getMappings().addColumnBinding( logicalColumnName, getMappingColumn(), value.getTable() );
  }
}
origin: com.manydesigns/portofino-database

protected Column createColumn(Mappings mappings,
              Table tab,
              com.manydesigns.portofino.model.database.Column column) {
  Column col = new Column();
  col.setName(quoteIdentifier(column.getColumnName()));
  if(column.getLength() != null) {
    col.setLength(column.getLength());
    col.setPrecision(column.getLength());
  }
  if(column.getScale() != null) {
    col.setScale(column.getScale());
  }
  col.setNullable(column.isNullable());
  String columnType = column.getColumnType();
  int jdbcType = column.getJdbcType();
  col.setSqlTypeCode(jdbcType);
  col.setSqlType(columnType);
  SimpleValue value = new SimpleValue(mappings, tab);
  if (!setHibernateType(value, column)) {
    logger.error("Skipping column {}", column.getQualifiedName());
    return null;
  }
  value.addColumn(col);
  tab.addColumn(col);
  mappings.addColumnBinding(column.getColumnName(), col, tab);
  return col;
}
origin: ManyDesigns/Portofino

protected Column createColumn(Mappings mappings,
              Table tab,
              com.manydesigns.portofino.model.database.Column column) {
  Column col = new Column();
  col.setName(quoteIdentifier(column.getColumnName()));
  if(column.getLength() != null) {
    col.setLength(column.getLength());
    col.setPrecision(column.getLength());
  }
  if(column.getScale() != null) {
    col.setScale(column.getScale());
  }
  col.setNullable(column.isNullable());
  String columnType = column.getColumnType();
  int jdbcType = column.getJdbcType();
  col.setSqlTypeCode(jdbcType);
  col.setSqlType(columnType);
  SimpleValue value = new SimpleValue(mappings, tab);
  if (!setHibernateType(value, column)) {
    logger.error("Skipping column {}", column.getQualifiedName());
    return null;
  }
  value.addColumn(col);
  tab.addColumn(col);
  mappings.addColumnBinding(column.getColumnName(), col, tab);
  return col;
}
org.hibernate.cfgMappingsaddColumnBinding

Javadoc

Binds the given 'physicalColumn' to the give 'logicalName' within the given 'table'.

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,
  • addPropertyReference,
  • addQuery

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • JButton (javax.swing)
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
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