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

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

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

origin: hibernate/hibernate

private static String getClassName(String unqualifiedName, Mappings model) {
  if ( unqualifiedName == null ) return null;
  if ( unqualifiedName.indexOf( '.' ) < 0 && model.getDefaultPackage() != null ) {
    return model.getDefaultPackage() + '.' + unqualifiedName;
  }
  return unqualifiedName;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static String getClassName(String unqualifiedName, Mappings model) {
  return getClassName( unqualifiedName, model.getDefaultPackage() );
}
origin: org.hibernate/com.springsource.org.hibernate

public static String getClassName(String unqualifiedName, Mappings model) {
  return getClassName( unqualifiedName, model.getDefaultPackage() );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

abstract static class CollectionType {
  private String xmlTag;
  public abstract Collection create(Element node, String path, PersistentClass owner,
      Mappings mappings, java.util.Map inheritedMetas) throws MappingException;
  CollectionType(String xmlTag) {
    this.xmlTag = xmlTag;
  }
  public String toString() {
    return xmlTag;
  }
  private static final CollectionType MAP = new CollectionType( "map" ) {
    public Collection create(Element node, String path, PersistentClass owner,
        Mappings mappings, java.util.Map inheritedMetas) throws MappingException {
      Map map = new Map( owner );
      bindCollection( node, map, owner.getEntityName(), path, mappings, inheritedMetas );
      return map;
    }
  };
  private static final CollectionType SET = new CollectionType( "set" ) {
    public Collection create(Element node, String path, PersistentClass owner,
        Mappings mappings, java.util.Map inheritedMetas) throws MappingException {
      Set set = new Set( owner );
      bindCollection( node, set, owner.getEntityName(), path, mappings, inheritedMetas );
      return set;
    }
  };
org.hibernate.cfgMappingsgetDefaultPackage

Javadoc

Get the currently bound 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

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text 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