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

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

Best Java code snippets using org.hibernate.boot.model.naming.ImplicitUniqueKeyNameSource.getTableName (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: Evolveum/midpoint

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

Popular methods of ImplicitUniqueKeyNameSource

  • getColumnNames
  • getBuildingContext
  • getUserProvidedIdentifier

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Join (org.hibernate.mapping)
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