congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GroupsPerOperation.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.hibernate.cfg.beanvalidation.GroupsPerOperation
constructor

Best Java code snippets using org.hibernate.cfg.beanvalidation.GroupsPerOperation.<init> (Showing top 8 results out of 315)

origin: hibernate/hibernate-orm

public static GroupsPerOperation from(Map settings, ClassLoaderAccess classLoaderAccess) {
  GroupsPerOperation groupsPerOperation = new GroupsPerOperation();
  applyOperationGrouping( groupsPerOperation, Operation.INSERT, settings, classLoaderAccess );
  applyOperationGrouping( groupsPerOperation, Operation.UPDATE, settings, classLoaderAccess );
  applyOperationGrouping( groupsPerOperation, Operation.DELETE, settings, classLoaderAccess );
  applyOperationGrouping( groupsPerOperation, Operation.DDL, settings, classLoaderAccess );
  return groupsPerOperation;
}
origin: org.hibernate/hibernate-annotations

private void init(ValidatorFactory factory, Properties properties) {
  this.factory = factory;
  groupsPerOperation = new GroupsPerOperation( properties );
  initialized = true;
}
origin: org.hibernate/hibernate-annotations

public static void applyDDL(Collection<PersistentClass> persistentClasses, Properties properties) {
  ValidatorFactory factory = getValidatorFactory( properties );
  Class<?>[] groupsArray = new GroupsPerOperation( properties ).get( GroupsPerOperation.Operation.DDL );
  Set<Class<?>> groups = new HashSet<Class<?>>( Arrays.asList( groupsArray ) );
  for ( PersistentClass persistentClass : persistentClasses ) {
    final String className = persistentClass.getClassName();
    if ( className == null || className.length() == 0) continue;
    Class<?> clazz;
    try {
      clazz = ReflectHelper.classForName( className, TypeSafeActivator.class );
    }
    catch ( ClassNotFoundException e ) {
      throw new AssertionFailure( "Entity class not found", e);
    }
    try {
      applyDDL( "", persistentClass, clazz, factory, groups, true );
    }
    catch (Exception e) {
      logger.warn( "Unable to apply constraints on DDL for " + className, e );
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void init(ValidatorFactory factory, Properties properties) {
  this.factory = factory;
  groupsPerOperation = new GroupsPerOperation( properties );
  initialized = true;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void init(ValidatorFactory factory, Properties properties) {
  this.factory = factory;
  groupsPerOperation = new GroupsPerOperation( properties );
  initialized = true;
}
origin: org.hibernate.orm/hibernate-core

public static GroupsPerOperation from(Map settings, ClassLoaderAccess classLoaderAccess) {
  GroupsPerOperation groupsPerOperation = new GroupsPerOperation();
  applyOperationGrouping( groupsPerOperation, Operation.INSERT, settings, classLoaderAccess );
  applyOperationGrouping( groupsPerOperation, Operation.UPDATE, settings, classLoaderAccess );
  applyOperationGrouping( groupsPerOperation, Operation.DELETE, settings, classLoaderAccess );
  applyOperationGrouping( groupsPerOperation, Operation.DDL, settings, classLoaderAccess );
  return groupsPerOperation;
}
origin: org.hibernate/com.springsource.org.hibernate

@SuppressWarnings( {"UnusedDeclaration"})
public static void applyDDL(Collection<PersistentClass> persistentClasses, Properties properties, Dialect dialect) {
  ValidatorFactory factory = getValidatorFactory( properties );
  Class<?>[] groupsArray = new GroupsPerOperation( properties ).get( GroupsPerOperation.Operation.DDL );
  Set<Class<?>> groups = new HashSet<Class<?>>( Arrays.asList( groupsArray ) );
  for ( PersistentClass persistentClass : persistentClasses ) {
    final String className = persistentClass.getClassName();
    if ( className == null || className.length() == 0 ) {
      continue;
    }
    Class<?> clazz;
    try {
      clazz = ReflectHelper.classForName( className, TypeSafeActivator.class );
    }
    catch ( ClassNotFoundException e ) {
      throw new AssertionFailure( "Entity class not found", e );
    }
    try {
      applyDDL( "", persistentClass, clazz, factory, groups, true, dialect );
    }
    catch (Exception e) {
      LOG.unableToApplyConstraints( className, e );
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

@SuppressWarnings( {"UnusedDeclaration"})
public static void applyDDL(Collection<PersistentClass> persistentClasses, Properties properties, Dialect dialect) {
  ValidatorFactory factory = getValidatorFactory( properties );
  Class<?>[] groupsArray = new GroupsPerOperation( properties ).get( GroupsPerOperation.Operation.DDL );
  Set<Class<?>> groups = new HashSet<Class<?>>( Arrays.asList( groupsArray ) );
  for ( PersistentClass persistentClass : persistentClasses ) {
    final String className = persistentClass.getClassName();
    if ( className == null || className.length() == 0 ) {
      continue;
    }
    Class<?> clazz;
    try {
      clazz = ReflectHelper.classForName( className, TypeSafeActivator.class );
    }
    catch ( ClassNotFoundException e ) {
      throw new AssertionFailure( "Entity class not found", e );
    }
    try {
      applyDDL( "", persistentClass, clazz, factory, groups, true, dialect );
    }
    catch (Exception e) {
      LOG.unableToApplyConstraints( className, e );
    }
  }
}
org.hibernate.cfg.beanvalidationGroupsPerOperation<init>

Popular methods of GroupsPerOperation

  • get
  • setGroupsForOperation
  • applyOperationGrouping
  • buildGroupsForOperation
  • from

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • startActivity (Activity)
  • getSystemService (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 17 Free Sublime Text Plugins
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