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

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

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

origin: hibernate/hibernate

public void addSecondPass(HbmBinder.SecondPass sp) {
  addSecondPass(sp, false);
}

origin: jboss.jboss-embeddable-ejb3/hibernate-all

public void addSecondPass(SecondPass sp) {
  addSecondPass(sp, false);
}
 
origin: org.hibernate/com.springsource.org.hibernate.core

public static void bindSqlResultsetMapping(SqlResultSetMapping ann, Mappings mappings, boolean isDefault) {
  //no need to handle inSecondPass
  mappings.addSecondPass( new ResultsetMappingSecondPass( ann, mappings, isDefault ) );
}
origin: org.hibernate/com.springsource.org.hibernate

public static void bindSqlResultsetMapping(SqlResultSetMapping ann, Mappings mappings, boolean isDefault) {
  //no need to handle inSecondPass
  mappings.addSecondPass( new ResultsetMappingSecondPass( ann, mappings, isDefault ) );
}
origin: org.hibernate/com.springsource.org.hibernate

private static void bindResultSetMappingDefinition(Element resultSetElem, String path, Mappings mappings) {
  mappings.addSecondPass( new ResultSetMappingSecondPass( resultSetElem, path, mappings ) );
}
origin: org.hibernate/com.springsource.org.hibernate

private static void bindNamedSQLQuery(Element queryElem, String path, Mappings mappings) {
  mappings.addSecondPass( new NamedSQLQuerySecondPass( queryElem, path, mappings ) );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void bindNamedSQLQuery(Element queryElem, String path, Mappings mappings) {
  mappings.addSecondPass( new NamedSQLQuerySecondPass( queryElem, path, mappings ) );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void bindResultSetMappingDefinition(Element resultSetElem, String path, Mappings mappings) {
  mappings.addSecondPass( new ResultSetMappingSecondPass( resultSetElem, path, mappings ) );
}
origin: org.hibernate/com.springsource.org.hibernate

public static void bindSqlResultsetMappings(SqlResultSetMappings ann, Mappings mappings, boolean isDefault) {
  if ( ann == null ) return;
  for (SqlResultSetMapping rs : ann.value()) {
    //no need to handle inSecondPass
    mappings.addSecondPass( new ResultsetMappingSecondPass( rs, mappings, true ) );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static void bindSqlResultsetMappings(SqlResultSetMappings ann, Mappings mappings, boolean isDefault) {
  if ( ann == null ) return;
  for (SqlResultSetMapping rs : ann.value()) {
    //no need to handle inSecondPass
    mappings.addSecondPass( new ResultsetMappingSecondPass( rs, mappings, true ) );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public static void addIndexes(Table hibTable, Index[] indexes, Mappings mappings) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    mappings.addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), mappings )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static void addIndexes(Table hibTable, Index[] indexes, Mappings mappings) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    mappings.addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), mappings )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, mappings, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, mappings, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, mappings, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, mappings, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
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

private static void bindFetchProfile(FetchProfile fetchProfileAnnotation, Mappings mappings) {
  for ( FetchProfile.FetchOverride fetch : fetchProfileAnnotation.fetchOverrides() ) {
    org.hibernate.annotations.FetchMode mode = fetch.mode();
    if ( !mode.equals( org.hibernate.annotations.FetchMode.JOIN ) ) {
      throw new MappingException( "Only FetchMode.JOIN is currently supported" );
    }
    SecondPass sp = new VerifyFetchProfileReferenceSecondPass( fetchProfileAnnotation.name(), fetch, mappings );
    mappings.addSecondPass( sp );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void bindFetchProfile(FetchProfile fetchProfileAnnotation, Mappings mappings) {
  for ( FetchProfile.FetchOverride fetch : fetchProfileAnnotation.fetchOverrides() ) {
    org.hibernate.annotations.FetchMode mode = fetch.mode();
    if ( !mode.equals( org.hibernate.annotations.FetchMode.JOIN ) ) {
      throw new MappingException( "Only FetchMode.JOIN is currently supported" );
    }
    SecondPass sp = new VerifyFetchProfileReferenceSecondPass( fetchProfileAnnotation.name(), fetch, mappings );
    mappings.addSecondPass( sp );
  }
}
org.hibernate.cfgMappingsaddSecondPass

Javadoc

Adds a second-pass to the end of the current queue.

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best plugins for Eclipse
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