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

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

Best Java code snippets using org.hibernate.mapping.IndexBackref.setSelectable (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

ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: org.hibernate/hibernate-annotations

ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: hibernate/hibernate

ib.setName( '_' + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setValue( list.getIndex() );
origin: org.hibernate/com.springsource.org.hibernate

ib.setName( '_' + list.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: org.hibernate/com.springsource.org.hibernate.core

ib.setName( '_' + list.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: hibernate/hibernate

ib.setName( '_' + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( map.getRole() );
ib.setValue( map.getIndex() );
origin: org.hibernate/com.springsource.org.hibernate

ib.setName( '_' + map.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( map.getRole() );
ib.setEntityName( map.getOwner().getEntityName() );
origin: org.hibernate/com.springsource.org.hibernate.core

ib.setName( '_' + map.getOwnerEntityName() + "." + node.attributeValue( "name" ) + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( map.getRole() );
ib.setEntityName( map.getOwner().getEntityName() );
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

ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
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

ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: org.hibernate/com.springsource.org.hibernate.core

ib.setName( '_' + propertyName + "IndexBackref" );
ib.setUpdateable( false );
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
origin: org.grails/grails-datastore-gorm-hibernate-core

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

ib.setName(UNDERSCORE + property.getName() + "IndexBackref");
ib.setUpdateable(false);
ib.setSelectable(false);
if (isManyToMany) {
  ib.setInsertable(false);
org.hibernate.mappingIndexBackrefsetSelectable

Popular methods of IndexBackref

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

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • BoxLayout (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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