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

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

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

origin: hibernate/hibernate

private static void extractRootAttributes(Element hmNode, Mappings mappings) {
  Attribute schemaNode = hmNode.attribute( "schema" );
  mappings.setSchemaName( ( schemaNode == null ) ? null : schemaNode.getValue() );
  Attribute catalogNode = hmNode.attribute( "catalog" );
  mappings.setCatalogName( ( catalogNode == null ) ? null : catalogNode.getValue() );
  Attribute dcNode = hmNode.attribute( "default-cascade" );
  mappings.setDefaultCascade( ( dcNode == null ) ? "none" : dcNode.getValue() );
  Attribute daNode = hmNode.attribute( "default-access" );
  mappings.setDefaultAccess( ( daNode == null ) ? "property" : daNode.getValue() );
  Attribute dlNode = hmNode.attribute( "default-lazy" );
  mappings.setDefaultLazy( dlNode == null || dlNode.getValue().equals( "true" ) );
  Attribute aiNode = hmNode.attribute( "auto-import" );
  mappings.setAutoImport( ( aiNode == null ) ? true : "true".equals( aiNode.getValue() ) );
  Attribute packNode = hmNode.attribute( "package" );
  if ( packNode != null ) mappings.setDefaultPackage( packNode.getValue() );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void extractRootAttributes(Element hmNode, Mappings mappings) {
  Attribute schemaNode = hmNode.attribute( "schema" );
  mappings.setSchemaName( ( schemaNode == null ) ? null : schemaNode.getValue() );
  Attribute catalogNode = hmNode.attribute( "catalog" );
  mappings.setCatalogName( ( catalogNode == null ) ? null : catalogNode.getValue() );
  Attribute dcNode = hmNode.attribute( "default-cascade" );
  mappings.setDefaultCascade( ( dcNode == null ) ? "none" : dcNode.getValue() );
  Attribute daNode = hmNode.attribute( "default-access" );
  mappings.setDefaultAccess( ( daNode == null ) ? "property" : daNode.getValue() );
  Attribute dlNode = hmNode.attribute( "default-lazy" );
  mappings.setDefaultLazy( dlNode == null || dlNode.getValue().equals( "true" ) );
  Attribute aiNode = hmNode.attribute( "auto-import" );
  mappings.setAutoImport( ( aiNode == null ) || "true".equals( aiNode.getValue() ) );
  Attribute packNode = hmNode.attribute( "package" );
  if ( packNode != null ) mappings.setDefaultPackage( packNode.getValue() );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

private static void extractRootAttributes(Element hmNode, Mappings mappings) {
  Attribute schemaNode = hmNode.attribute( "schema" );
  mappings.setSchemaName( ( schemaNode == null ) ? null : schemaNode.getValue() );
  Attribute catalogNode = hmNode.attribute( "catalog" );
  mappings.setCatalogName( ( catalogNode == null ) ? null : catalogNode.getValue() );
  Attribute dcNode = hmNode.attribute( "default-cascade" );
  mappings.setDefaultCascade( ( dcNode == null ) ? "none" : dcNode.getValue() );
  Attribute daNode = hmNode.attribute( "default-access" );
  mappings.setDefaultAccess( ( daNode == null ) ? "property" : daNode.getValue() );
  Attribute dlNode = hmNode.attribute( "default-lazy" );
  mappings.setDefaultLazy( dlNode == null || dlNode.getValue().equals( "true" ) );
  Attribute aiNode = hmNode.attribute( "auto-import" );
  mappings.setAutoImport( ( aiNode == null ) || "true".equals( aiNode.getValue() ) );
  Attribute packNode = hmNode.attribute( "package" );
  if ( packNode != null ) mappings.setDefaultPackage( packNode.getValue() );
}
origin: org.hibernate/com.springsource.org.hibernate

private static void extractRootAttributes(Element hmNode, Mappings mappings) {
  Attribute schemaNode = hmNode.attribute( "schema" );
  mappings.setSchemaName( ( schemaNode == null ) ? null : schemaNode.getValue() );
  Attribute catalogNode = hmNode.attribute( "catalog" );
  mappings.setCatalogName( ( catalogNode == null ) ? null : catalogNode.getValue() );
  Attribute dcNode = hmNode.attribute( "default-cascade" );
  mappings.setDefaultCascade( ( dcNode == null ) ? "none" : dcNode.getValue() );
  Attribute daNode = hmNode.attribute( "default-access" );
  mappings.setDefaultAccess( ( daNode == null ) ? "property" : daNode.getValue() );
  Attribute dlNode = hmNode.attribute( "default-lazy" );
  mappings.setDefaultLazy( dlNode == null || dlNode.getValue().equals( "true" ) );
  Attribute aiNode = hmNode.attribute( "auto-import" );
  mappings.setAutoImport( ( aiNode == null ) || "true".equals( aiNode.getValue() ) );
  Attribute packNode = hmNode.attribute( "package" );
  if ( packNode != null ) mappings.setDefaultPackage( packNode.getValue() );
}
org.hibernate.cfgMappingssetDefaultAccess

Javadoc

Sets the current default property access style.

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

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Table (org.hibernate.mapping)
    A relational table
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
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