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

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

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

origin: hibernate/hibernate

if ( packNode != null ) mappings.setDefaultPackage( packNode.getValue() );
origin: org.hibernate/com.springsource.org.hibernate

final String packageName = packNode == null ? null : packNode.getValue();
if ( packageName != null ) {
  mappings.setDefaultPackage( packageName );
origin: org.hibernate/com.springsource.org.hibernate.core

final String packageName = packNode == null ? null : packNode.getValue();
if ( packageName != null ) {
  mappings.setDefaultPackage( packageName );
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: 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() );
}
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() );
}
org.hibernate.cfgMappingssetDefaultPackage

Javadoc

Set the current default package name.

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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • 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