Tabnine Logo
IndexBackref.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
org.hibernate.mapping.IndexBackref

Best Java code snippets using org.hibernate.mapping.IndexBackref.setName (Showing top 18 results out of 315)

origin: hibernate/hibernate-orm

  @Override
  protected void createBackReferences() {
    super.createBackReferences();
    boolean indexIsFormula = false;
    Iterator itr = getCollectionBinding().getIndex().getColumnIterator();
    while ( itr.hasNext() ) {
      if ( ( (Selectable) itr.next() ).isFormula() ) {
        indexIsFormula = true;
      }
    }
    if ( getCollectionBinding().isOneToMany()
        && !getCollectionBinding().getKey().isNullable()
        && !getCollectionBinding().isInverse()
        && !indexIsFormula ) {
      final String entityName = ( (OneToMany) getCollectionBinding().getElement() ).getReferencedEntityName();
      final PersistentClass referenced = getMappingDocument().getMetadataCollector().getEntityBinding( entityName );
      final IndexBackref ib = new IndexBackref();
      ib.setName( '_' + getCollectionBinding().getOwnerEntityName() + "." + getPluralAttributeSource().getName() + "IndexBackref" );
      ib.setUpdateable( false );
      ib.setSelectable( false );
      ib.setCollectionRole( getCollectionBinding().getRole() );
      ib.setEntityName( getCollectionBinding().getOwner().getEntityName() );
      ib.setValue( getCollectionBinding().getIndex() );
      referenced.addProperty( ib );
    }
  }
}
origin: hibernate/hibernate-orm

private void createIndexBackRef(
    MappingDocument mappingDocument,
    IndexedPluralAttributeSource pluralAttributeSource,
    IndexedCollection collectionBinding) {
  if ( collectionBinding.isOneToMany()
      && !collectionBinding.getKey().isNullable()
      && !collectionBinding.isInverse() ) {
    final String entityName = ( (OneToMany) collectionBinding.getElement() ).getReferencedEntityName();
    final PersistentClass referenced = mappingDocument.getMetadataCollector().getEntityBinding( entityName );
    final IndexBackref ib = new IndexBackref();
    ib.setName( '_' + collectionBinding.getOwnerEntityName() + "." + pluralAttributeSource.getName() + "IndexBackref" );
    ib.setUpdateable( false );
    ib.setSelectable( false );
    ib.setCollectionRole( collectionBinding.getRole() );
    ib.setEntityName( collectionBinding.getOwner().getEntityName() );
    ib.setValue( collectionBinding.getIndex() );
    referenced.addProperty( ib );
  }
}
origin: hibernate/hibernate-orm

PersistentClass referenced = buildingContext.getMetadataCollector().getEntityBinding( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate/hibernate-annotations

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: hibernate/hibernate

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate/com.springsource.org.hibernate

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + list.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate/com.springsource.org.hibernate.core

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + list.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: hibernate/hibernate

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate/com.springsource.org.hibernate

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + map.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate/com.springsource.org.hibernate.core

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + map.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate.orm/hibernate-core

private void createIndexBackRef(
    MappingDocument mappingDocument,
    IndexedPluralAttributeSource pluralAttributeSource,
    IndexedCollection collectionBinding) {
  if ( collectionBinding.isOneToMany()
      && !collectionBinding.getKey().isNullable()
      && !collectionBinding.isInverse() ) {
    final String entityName = ( (OneToMany) collectionBinding.getElement() ).getReferencedEntityName();
    final PersistentClass referenced = mappingDocument.getMetadataCollector().getEntityBinding( entityName );
    final IndexBackref ib = new IndexBackref( metadataBuildingContext );
    ib.setName( '_' + collectionBinding.getOwnerEntityName() + "." + pluralAttributeSource.getName() + "IndexBackref" );
    ib.setUpdateable( false );
    ib.setSelectable( false );
    ib.setCollectionRole( collectionBinding.getRole() );
    ib.setEntityName( collectionBinding.getOwner().getEntityName() );
    ib.setValue( collectionBinding.getIndex() );
    referenced.addProperty( ib );
  }
}
origin: org.hibernate.orm/hibernate-core

PersistentClass referenced = buildingContext.getMetadataCollector().getEntityBinding( entityName );
IndexBackref ib = new IndexBackref( buildingContext );
ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate.orm/hibernate-core

  @Override
  protected void createBackReferences() {
    super.createBackReferences();
    boolean indexIsFormula = false;
    final List<MappedColumn> mappedColumns = getCollectionBinding().getIndex().getMappedColumns();
    for ( MappedColumn mappedColumn : mappedColumns ) {
      if ( mappedColumn.isFormula() ) {
        indexIsFormula = true;
      }
    }
    if ( getCollectionBinding().isOneToMany()
        && !getCollectionBinding().getKey().isNullable()
        && !getCollectionBinding().isInverse()
        && !indexIsFormula ) {
      final String entityName = ( (OneToMany) getCollectionBinding().getElement() ).getReferencedEntityName();
      final PersistentClass referenced = getMappingDocument().getMetadataCollector().getEntityBinding( entityName );
      final IndexBackref ib = new IndexBackref( metadataBuildingContext );
      ib.setName( '_' + getCollectionBinding().getOwnerEntityName() + "." + getPluralAttributeSource().getName() + "IndexBackref" );
      ib.setUpdateable( false );
      ib.setSelectable( false );
      ib.setCollectionRole( getCollectionBinding().getRole() );
      ib.setEntityName( getCollectionBinding().getOwner().getEntityName() );
      ib.setValue( getCollectionBinding().getIndex() );
      referenced.addProperty( ib );
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.hibernate/com.springsource.org.hibernate.core

PersistentClass referenced = mappings.getClass( entityName );
IndexBackref ib = new IndexBackref();
ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
origin: org.grails/grails-datastore-gorm-hibernate-core

ib.setName(UNDERSCORE + property.getName() + "IndexBackref");
ib.setUpdateable(false);
ib.setSelectable(false);
origin: org.grails/grails-hibernate

ib.setName(UNDERSCORE + property.getName() + "IndexBackref");
ib.setUpdateable(false);
ib.setSelectable(false);
org.hibernate.mappingIndexBackrefsetName

Popular methods of IndexBackref

  • <init>
  • setCollectionRole
  • setSelectable
  • setUpdateable
  • setValue
  • setEntityName
  • setInsertable

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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