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

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

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

Javadoc

Sets the current default cascade 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

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • setContentView (Activity)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm 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