congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Mappings.getConfigurationProperties
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.hibernate/com.springsource.org.hibernate

private static SharedCacheMode determineSharedCacheMode(Mappings mappings) {
  SharedCacheMode mode;
  final Object value = mappings.getConfigurationProperties().get( "javax.persistence.sharedCache.mode" );
  if ( value == null ) {
    LOG.debug( "No value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED" );
    mode = SharedCacheMode.UNSPECIFIED;
  }
  else {
    if ( SharedCacheMode.class.isInstance( value ) ) {
      mode = ( SharedCacheMode ) value;
    }
    else {
      try {
        mode = SharedCacheMode.valueOf( value.toString() );
      }
      catch ( Exception e ) {
        LOG.debugf( "Unable to resolve given mode name [%s]; using UNSPECIFIED : %s", value, e );
        mode = SharedCacheMode.UNSPECIFIED;
      }
    }
  }
  return mode;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static SharedCacheMode determineSharedCacheMode(Mappings mappings) {
  SharedCacheMode mode;
  final Object value = mappings.getConfigurationProperties().get( "javax.persistence.sharedCache.mode" );
  if ( value == null ) {
    LOG.debug( "No value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED" );
    mode = SharedCacheMode.UNSPECIFIED;
  }
  else {
    if ( SharedCacheMode.class.isInstance( value ) ) {
      mode = ( SharedCacheMode ) value;
    }
    else {
      try {
        mode = SharedCacheMode.valueOf( value.toString() );
      }
      catch ( Exception e ) {
        LOG.debugf( "Unable to resolve given mode name [%s]; using UNSPECIFIED : %s", value, e );
        mode = SharedCacheMode.UNSPECIFIED;
      }
    }
  }
  return mode;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static CacheConcurrencyStrategy determineCacheConcurrencyStrategy(Mappings mappings) {
  if ( DEFAULT_CACHE_CONCURRENCY_STRATEGY == null ) {
    final RegionFactory cacheRegionFactory = SettingsFactory.createRegionFactory(
        mappings.getConfigurationProperties(), true
    );
    DEFAULT_CACHE_CONCURRENCY_STRATEGY = CacheConcurrencyStrategy.fromAccessType( cacheRegionFactory.getDefaultAccessType() );
  }
  return DEFAULT_CACHE_CONCURRENCY_STRATEGY;
}
origin: org.hibernate/com.springsource.org.hibernate

private static CacheConcurrencyStrategy determineCacheConcurrencyStrategy(Mappings mappings) {
  if ( DEFAULT_CACHE_CONCURRENCY_STRATEGY == null ) {
    final RegionFactory cacheRegionFactory = SettingsFactory.createRegionFactory(
        mappings.getConfigurationProperties(), true
    );
    DEFAULT_CACHE_CONCURRENCY_STRATEGY = CacheConcurrencyStrategy.fromAccessType( cacheRegionFactory.getDefaultAccessType() );
  }
  return DEFAULT_CACHE_CONCURRENCY_STRATEGY;
}
origin: org.hibernate/com.springsource.org.hibernate

    mappings.getConfigurationProperties().getProperty( Environment.PREFER_POOLED_VALUES_LO, "false" )
);
origin: org.hibernate/com.springsource.org.hibernate.core

    mappings.getConfigurationProperties().getProperty( Environment.PREFER_POOLED_VALUES_LO, "false" )
);
org.hibernate.cfgMappingsgetConfigurationProperties

Javadoc

Retrieve the configuration properties currently in effect.

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.
  • isAutoImport
    Determine whether auto importing of entity names is currently enabled.
  • addDenormalizedTable
    Adds a 'denormalized table' to this repository.
  • isAutoImport,
  • addDenormalizedTable,
  • addFilterDefinition,
  • addTypeDef,
  • addUniquePropertyReference,
  • getObjectNameNormalizer,
  • setAutoImport,
  • addColumnBinding,
  • addPropertyReference,
  • addQuery

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JCheckBox (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now