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

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

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

origin: org.hibernate/com.springsource.org.hibernate

private static void bindGenericGenerator(GenericGenerator def, Mappings mappings) {
  IdGenerator idGen = buildIdGenerator( def, mappings );
  mappings.addGenerator( idGen );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void bindGenericGenerator(GenericGenerator def, Mappings mappings) {
  IdGenerator idGen = buildIdGenerator( def, mappings );
  mappings.addGenerator( idGen );
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static void bindPackage(String packageName, Mappings mappings) {
  XPackage pckg;
  try {
    pckg = mappings.getReflectionManager().packageForName( packageName );
  }
  catch ( ClassNotFoundException cnf ) {
    LOG.packageNotFound( packageName );
    return;
  }
  if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
    SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
    if ( LOG.isTraceEnabled() ) {
      LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
    }
  }
  if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
    TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
  }
  bindGenericGenerators( pckg, mappings );
  bindQueries( pckg, mappings );
  bindFilterDefs( pckg, mappings );
  bindTypeDefs( pckg, mappings );
  bindFetchProfiles( pckg, mappings );
  BinderHelper.bindAnyMetaDefs( pckg, mappings );
}
origin: org.hibernate/com.springsource.org.hibernate

public static void bindPackage(String packageName, Mappings mappings) {
  XPackage pckg;
  try {
    pckg = mappings.getReflectionManager().packageForName( packageName );
  }
  catch ( ClassNotFoundException cnf ) {
    LOG.packageNotFound( packageName );
    return;
  }
  if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
    SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
    if ( LOG.isTraceEnabled() ) {
      LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
    }
  }
  if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
    TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
  }
  bindGenericGenerators( pckg, mappings );
  bindQueries( pckg, mappings );
  bindFilterDefs( pckg, mappings );
  bindTypeDefs( pckg, mappings );
  bindFetchProfiles( pckg, mappings );
  BinderHelper.bindAnyMetaDefs( pckg, mappings );
}
org.hibernate.cfgMappingsaddGenerator

Javadoc

Add a generator.

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

  • Start an intent from android
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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