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

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

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

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

public void doSecondPass(Map persistentClasses) throws MappingException {
  if ( columns != null ) {
    for (String columnName : columns) {
      addConstraintToColumn( columnName );
    }
  }
  if ( column != null ) {
    this.table = column.getTable();
    addConstraintToColumn( mappings.getLogicalColumnName( column.getMappingColumn().getQuotedName(), table ) );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void doSecondPass(Map persistentClasses) throws MappingException {
  if ( columns != null ) {
    for (String columnName : columns) {
      addConstraintToColumn( columnName );
    }
  }
  if ( column != null ) {
    this.table = column.getTable();
    addConstraintToColumn( mappings.getLogicalColumnName( column.getMappingColumn().getQuotedName(), table ) );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

  Mappings mappings) {
Column col = (Column) identifier.getColumnIterator().next();
String defaultName = mappings.getLogicalColumnName( col.getQuotedName(), identifier.getTable() );
if ( pkJoinAnn != null || joinAnn != null ) {
  String colName;
origin: org.hibernate/com.springsource.org.hibernate

if ( isExplicitReference ) {
  final String columnName = column.getName();
  logicalColumnName = mappings.getLogicalColumnName( columnName, referencedPersistentClass.getTable() );
origin: org.hibernate/com.springsource.org.hibernate.core

  Mappings mappings) {
Column col = (Column) identifier.getColumnIterator().next();
String defaultName = mappings.getLogicalColumnName( col.getQuotedName(), identifier.getTable() );
if ( pkJoinAnn != null || joinAnn != null ) {
  String colName;
origin: org.hibernate/com.springsource.org.hibernate.core

if ( isExplicitReference ) {
  final String columnName = column.getName();
  logicalColumnName = mappings.getLogicalColumnName( columnName, referencedPersistentClass.getTable() );
origin: org.hibernate/com.springsource.org.hibernate.core

public void linkValueUsingDefaultColumnNaming(
    Column referencedColumn,
    PersistentClass referencedEntity,
    SimpleValue value) {
  String columnName;
  String logicalReferencedColumn = getMappings().getLogicalColumnName(
      referencedColumn.getQuotedName(), referencedEntity.getTable()
  );
  columnName = buildDefaultColumnName( referencedEntity, logicalReferencedColumn );
  //yuk side effect on an implicit column
  setLogicalColumnName( columnName );
  setReferencedColumn( logicalReferencedColumn );
  initMappingColumn(
      columnName,
      null, referencedColumn.getLength(),
      referencedColumn.getPrecision(),
      referencedColumn.getScale(),
      getMappingColumn() != null ? getMappingColumn().isNullable() : false,
      referencedColumn.getSqlType(),
      getMappingColumn() != null ? getMappingColumn().isUnique() : false,
      false
  );
  linkWithValue( value );
}
origin: org.hibernate/com.springsource.org.hibernate

public void linkValueUsingDefaultColumnNaming(
    Column referencedColumn,
    PersistentClass referencedEntity,
    SimpleValue value) {
  String columnName;
  String logicalReferencedColumn = getMappings().getLogicalColumnName(
      referencedColumn.getQuotedName(), referencedEntity.getTable()
  );
  columnName = buildDefaultColumnName( referencedEntity, logicalReferencedColumn );
  //yuk side effect on an implicit column
  setLogicalColumnName( columnName );
  setReferencedColumn( logicalReferencedColumn );
  initMappingColumn(
      columnName,
      null, referencedColumn.getLength(),
      referencedColumn.getPrecision(),
      referencedColumn.getScale(),
      getMappingColumn() != null ? getMappingColumn().isNullable() : false,
      referencedColumn.getSqlType(),
      getMappingColumn() != null ? getMappingColumn().isUnique() : false,
      false
  );
  linkWithValue( value );
}
org.hibernate.cfgMappingsgetLogicalColumnName

Javadoc

Find the logical column name against whcih the given physical column name was bound 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,
  • addColumnBinding,
  • addPropertyReference,
  • addQuery

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top Vim 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