Codota Logo
ImplicitUniqueKeyNameSource
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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: Evolveum/midpoint

@Override
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source) {
  Identifier i = super.determineUniqueKeyName(source);
  LOGGER.trace("determineUniqueKeyName {} {} -> {}", source.getTableName(), source.getColumnNames(), i);
  return i;
}
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());
  }
}
origin: v-ladynev/fluent-hibernate

/**
 * Generates a name for a unique constraint.
 */
@Override
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source) {
  List<Identifier> columnNames = source.getColumnNames();
  // constraints are supported for one column only
  if (InternalUtils.CollectionUtils.size(columnNames) != 1) {
    return super.determineUniqueKeyName(source);
  }
  String result = strategy.uniqueKeyConstraintName(source.getTableName().getText(),
      columnNames.get(0).getText());
  return toIdentifier(result, source);
}
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()
  );
}
org.hibernate.boot.model.namingImplicitUniqueKeyNameSource

Most used methods

  • getColumnNames
  • getTableName
  • getBuildingContext
  • getUserProvidedIdentifier

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • String (java.lang)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now