congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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