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

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

Best Java code snippets using org.hibernate.mapping.IndexBackref.setValue (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.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
origin: org.hibernate/hibernate-annotations

ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
origin: hibernate/hibernate

ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setValue( list.getIndex() );
origin: org.hibernate/com.springsource.org.hibernate

ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
origin: org.hibernate/com.springsource.org.hibernate.core

ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
origin: hibernate/hibernate

ib.setSelectable( false );
ib.setCollectionRole( map.getRole() );
ib.setValue( map.getIndex() );
origin: org.hibernate/com.springsource.org.hibernate

ib.setCollectionRole( map.getRole() );
ib.setEntityName( map.getOwner().getEntityName() );
ib.setValue( map.getIndex() );
origin: org.hibernate/com.springsource.org.hibernate.core

ib.setCollectionRole( map.getRole() );
ib.setEntityName( map.getOwner().getEntityName() );
ib.setValue( map.getIndex() );
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.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
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.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
origin: org.hibernate/com.springsource.org.hibernate.core

ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
origin: org.grails/grails-datastore-gorm-hibernate-core

ib.setValue(list.getIndex());
referenced.addProperty(ib);
origin: org.grails/grails-hibernate

ib.setValue(list.getIndex());
referenced.addProperty(ib);
org.hibernate.mappingIndexBackrefsetValue

Popular methods of IndexBackref

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

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • 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