Tabnine Logo
ImplicitUniqueKeyNameSource.getBuildingContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getBuildingContext
method
in
org.hibernate.boot.model.naming.ImplicitUniqueKeyNameSource

Best Java code snippets using org.hibernate.boot.model.naming.ImplicitUniqueKeyNameSource.getBuildingContext (Showing top 4 results out of 315)

origin: hibernate/hibernate-orm

@Override
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source) {
  Identifier userProvidedIdentifier = source.getUserProvidedIdentifier();
  return userProvidedIdentifier != null ? userProvidedIdentifier : toIdentifier(
      NamingHelper.withCharset( source.getBuildingContext().getBuildingOptions().getSchemaCharset() ).generateHashedConstraintName(
          "UK",
          source.getTableName(),
          source.getColumnNames()
      ),
      source.getBuildingContext()
  );
}
origin: v-ladynev/fluent-hibernate

/**
 * Generates a name for a unique constraint.
 */
@Override
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source) {
  String result = generateHashedConstraintName(UNIQUE_CONSTRAINT_PREFIX,
      source.getTableName(), source.getColumnNames());
  return toIdentifier(result, source.getBuildingContext());
}
origin: org.hibernate.orm/hibernate-core

@Override
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source) {
  Identifier userProvidedIdentifier = source.getUserProvidedIdentifier();
  return userProvidedIdentifier != null ? userProvidedIdentifier : toIdentifier(
      NamingHelper.withCharset( source.getBuildingContext().getBuildingOptions().getSchemaCharset() ).generateHashedConstraintName(
          "UK",
          source.getTableName(),
          source.getColumnNames()
      ),
      source.getBuildingContext()
  );
}
origin: org.ligoj.bootstrap/bootstrap-core

  @Override
  public Identifier determineUniqueKeyName(final ImplicitUniqueKeyNameSource source) {
    return toIdentifier(Constraint.generateName("UK_", new Table(source.getTableName().getText()), toColumns(source.getColumnNames())),
        source.getBuildingContext());
  }
}
org.hibernate.boot.model.namingImplicitUniqueKeyNameSourcegetBuildingContext

Popular methods of ImplicitUniqueKeyNameSource

  • getColumnNames
  • getTableName
  • getUserProvidedIdentifier

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JCheckBox (javax.swing)
  • 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
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now