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

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

Best Java code snippets using org.hibernate.cfg.Mappings.setDefaultLazy (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.cfgMappingssetDefaultLazy

Javadoc

Set whether to enable default laziness.

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
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BoxLayout (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Github Copilot alternatives
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