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

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

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

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

public void linkWithValue() {
  if ( columns[0].isNameDeferred() && !mappings.isInSecondPass() && referencedEntityName != null ) {
    mappings.addSecondPass(
        new PkDrivenByDefaultMapsIdSecondPass(
            referencedEntityName, ( Ejb3JoinColumn[] ) columns, simpleValue
        )
    );
  }
  else {
    for ( Ejb3Column column : columns ) {
      column.linkWithValue( simpleValue );
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void linkWithValue() {
  if ( columns[0].isNameDeferred() && !mappings.isInSecondPass() && referencedEntityName != null ) {
    mappings.addSecondPass(
        new PkDrivenByDefaultMapsIdSecondPass(
            referencedEntityName, ( Ejb3JoinColumn[] ) columns, simpleValue
        )
    );
  }
  else {
    for ( Ejb3Column column : columns ) {
      column.linkWithValue( simpleValue );
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public SimpleValue make() {
  validate();
  LOG.debugf( "building SimpleValue for %s", propertyName );
  if ( table == null ) {
    table = columns[0].getTable();
  }
  simpleValue = new SimpleValue( mappings, table );
  linkWithValue();
  boolean isInSecondPass = mappings.isInSecondPass();
  SetSimpleValueTypeSecondPass secondPass = new SetSimpleValueTypeSecondPass( this );
  if ( !isInSecondPass ) {
    //Defer this to the second pass
    mappings.addSecondPass( secondPass );
  }
  else {
    //We are already in second pass
    fillSimpleValue();
  }
  return simpleValue;
}
origin: org.hibernate/com.springsource.org.hibernate

public SimpleValue make() {
  validate();
  LOG.debugf( "building SimpleValue for %s", propertyName );
  if ( table == null ) {
    table = columns[0].getTable();
  }
  simpleValue = new SimpleValue( mappings, table );
  linkWithValue();
  boolean isInSecondPass = mappings.isInSecondPass();
  SetSimpleValueTypeSecondPass secondPass = new SetSimpleValueTypeSecondPass( this );
  if ( !isInSecondPass ) {
    //Defer this to the second pass
    mappings.addSecondPass( secondPass );
  }
  else {
    //We are already in second pass
    fillSimpleValue();
  }
  return simpleValue;
}
org.hibernate.cfgMappingsisInSecondPass

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

  • Making http post requests using okhttp
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • String (java.lang)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top 12 Jupyter Notebook extensions
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