Codota Logo
IndexOrUniqueKeySecondPass.addConstraintToColumns
Code IndexAdd Codota to your IDE (free)

How to use
addConstraintToColumns
method
in
org.hibernate.cfg.IndexOrUniqueKeySecondPass

Best Java code snippets using org.hibernate.cfg.IndexOrUniqueKeySecondPass.addConstraintToColumns (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

addConstraintToColumns( columns );
origin: org.hibernate.orm/hibernate-core

@Override
public void doSecondPass(Map persistentClasses) throws MappingException {
  if ( columns != null ) {
    for ( int i = 0; i < columns.length; i++ ) {
      addConstraintToColumn( columns[i] );
    }
  }
  if ( column != null ) {
    this.table = column.getTable();
    final PropertyHolder propertyHolder = column.getPropertyHolder();
    String entityName = ( propertyHolder.isComponent() ) ?
        propertyHolder.getPersistentClass().getEntityName() :
        propertyHolder.getEntityName();
    final PersistentClass persistentClass = (PersistentClass) persistentClasses.get( entityName );
    final Property property = persistentClass.getProperty( column.getPropertyName() );
    if ( property.getValue() instanceof Component ) {
      final Component component = (Component) property.getValue();
      final List<Column> columns = component.getMappedColumns().stream()
          .filter( Column.class::isInstance )
          .map(Column.class::cast )
          .collect( Collectors.toList() );
      addConstraintToColumns( columns );
    }
    else {
      addConstraintToColumn(
           column.getMappingColumn().getQuotedName() )
      ;
    }
  }
}
org.hibernate.cfgIndexOrUniqueKeySecondPassaddConstraintToColumns

Popular methods of IndexOrUniqueKeySecondPass

  • <init>
    Build an index
  • addConstraintToColumn
  • doSecondPass

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
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