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

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

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

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

if ( mappings.isAutoImport() && entity.getEntityName().indexOf( '.' ) > 0 ) {
  mappings.addImport(
      entity.getEntityName(),
origin: org.grails/grails-datastore-gorm-hibernate-core

/**
 * Binds the specified persistant class to the runtime model based on the
 * properties defined in the domain class
 *
 * @param domainClass     The Grails domain class
 * @param persistentClass The persistant class
 * @param mappings        Existing mappings
 */
protected void bindClass(PersistentEntity domainClass, PersistentClass persistentClass, Mappings mappings) {
  // set lazy loading for now
  persistentClass.setLazy(true);
  final String entityName = domainClass.getName();
  persistentClass.setEntityName(entityName);
  persistentClass.setJpaEntityName(unqualify(entityName));
  persistentClass.setProxyInterfaceName(entityName);
  persistentClass.setClassName(entityName);
  // set dynamic insert to false
  persistentClass.setDynamicInsert(false);
  // set dynamic update to false
  persistentClass.setDynamicUpdate(false);
  // set select before update to false
  persistentClass.setSelectBeforeUpdate(false);
  // add import to mappings
  if (mappings.isAutoImport() && persistentClass.getEntityName().indexOf('.') > 0) {
    mappings.addImport(persistentClass.getEntityName(), unqualify(persistentClass.getEntityName()));
  }
}
origin: org.grails/grails-hibernate

/**
 * Binds the specified persistant class to the runtime model based on the
 * properties defined in the domain class
 *
 * @param domainClass     The Grails domain class
 * @param persistentClass The persistant class
 * @param mappings        Existing mappings
 */
private static void bindClass(GrailsDomainClass domainClass, PersistentClass persistentClass, Mappings mappings) {
  // set lazy loading for now
  persistentClass.setLazy(true);
  persistentClass.setEntityName(domainClass.getFullName());
  persistentClass.setProxyInterfaceName(domainClass.getFullName());
  persistentClass.setClassName(domainClass.getFullName());
  // set dynamic insert to false
  persistentClass.setDynamicInsert(false);
  // set dynamic update to false
  persistentClass.setDynamicUpdate(false);
  // set select before update to false
  persistentClass.setSelectBeforeUpdate(false);
  // add import to mappings
  if (mappings.isAutoImport() && persistentClass.getEntityName().indexOf('.') > 0) {
    mappings.addImport(persistentClass.getEntityName(), StringHelper.unqualify(persistentClass.getEntityName()));
  }
}
origin: org.hibernate/com.springsource.org.hibernate

if ( mappings.isAutoImport() && entity.getEntityName().indexOf( '.' ) > 0 ) {
  mappings.addImport(
      entity.getEntityName(),
origin: hibernate/hibernate

if ( mappings.isAutoImport() && entity.getEntityName().indexOf( '.' ) > 0 ) {
  mappings.addImport( entity.getEntityName(), StringHelper.unqualify( entity
    .getEntityName() ) );
origin: org.hibernate/com.springsource.org.hibernate.core

if ( mappings.isAutoImport() && entity.getEntityName().indexOf( '.' ) > 0 ) {
  mappings.addImport(
      entity.getEntityName(),
org.hibernate.cfgMappingsisAutoImport

Javadoc

Determine whether auto importing of entity names is currently enabled.

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.
  • 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

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • JButton (javax.swing)
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim plugins
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