Codota Logo
GroupsPerOperation.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
org.hibernate.cfg.beanvalidation.GroupsPerOperation

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

    .traversableResolver( tr )
    .getValidator();
final Class<?>[] groups = groupsPerOperation.get( operation );
if ( groups.length > 0 ) {
  final Set<ConstraintViolation<T>> constraintViolations = validator.validate( object, groups );
origin: org.hibernate/hibernate-annotations

    .traversableResolver( tr )
    .getValidator();
final Class<?>[] groups = groupsPerOperation.get( operation );
if ( groups.length > 0 ) {
  final Set<ConstraintViolation<T>> constraintViolations = validator.validate( object, groups );
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.orm/hibernate-core

final Validator validator = factory.usingContext().traversableResolver( tr ).getValidator();
final Class<?>[] groups = groupsPerOperation.get( operation );
if ( groups.length > 0 ) {
  final Set<ConstraintViolation<T>> constraintViolations = validator.validate( object, groups );
origin: org.hibernate/com.springsource.org.hibernate

    .traversableResolver( tr )
    .getValidator();
final Class<?>[] groups = groupsPerOperation.get( operation );
if ( groups.length > 0 ) {
  final Set<ConstraintViolation<T>> constraintViolations = validator.validate( object, groups );
origin: org.hibernate/com.springsource.org.hibernate.core

    .traversableResolver( tr )
    .getValidator();
final Class<?>[] groups = groupsPerOperation.get( operation );
if ( groups.length > 0 ) {
  final Set<ConstraintViolation<T>> constraintViolations = validator.validate( object, groups );
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 );
    }
  }
}
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 );
    }
  }
}
org.hibernate.cfg.beanvalidationGroupsPerOperationget

Popular methods of GroupsPerOperation

  • <init>
  • setGroupsForOperation
  • applyOperationGrouping
  • buildGroupsForOperation
  • from

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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