Codota Logo
TypeSafeActivator.getColumn
Code IndexAdd Codota to your IDE (free)

How to use
getColumn
method
in
org.hibernate.cfg.beanvalidation.TypeSafeActivator

Best Java code snippets using org.hibernate.cfg.beanvalidation.TypeSafeActivator.getColumn (Showing top 5 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: org.hibernate.orm/hibernate-core

private static void applyLength(
    PersistentAttributeMapping property,
    ConstraintDescriptor<?> descriptor,
    PropertyDescriptor propertyDescriptor) {
  if (
      "org.hibernate.validator.constraints.Length".equals(
          descriptor.getAnnotation().annotationType().getName()
      ) && String.class.equals( propertyDescriptor.getElementClass() ) ) {
    @SuppressWarnings("unchecked")
    final int max = (Integer) descriptor.getAttributes().get( "max" );
    final Column col = getColumn( property );
    if ( max < Integer.MAX_VALUE ) {
      col.setLength( (long) max );
    }
  }
}
origin: org.hibernate.orm/hibernate-core

private static void applySize(PersistentAttributeMapping property, ConstraintDescriptor<?> descriptor, PropertyDescriptor propertyDescriptor) {
  if ( Size.class.equals( descriptor.getAnnotation().annotationType() )
      && String.class.equals( propertyDescriptor.getElementClass() ) ) {
    @SuppressWarnings("unchecked")
    final ConstraintDescriptor<Size> sizeConstraint = (ConstraintDescriptor<Size>) descriptor;
    final int max = sizeConstraint.getAnnotation().max();
    final Column col = getColumn( property );
    if ( max < Integer.MAX_VALUE ) {
      col.setLength( (long) max );
    }
  }
}
origin: org.hibernate.orm/hibernate-core

private static void applyMin(PersistentAttributeMapping property, ConstraintDescriptor<?> descriptor, Dialect dialect) {
  if ( Min.class.equals( descriptor.getAnnotation().annotationType() ) ) {
    @SuppressWarnings("unchecked")
    final ConstraintDescriptor<Min> minConstraint = (ConstraintDescriptor<Min>) descriptor;
    final long min = minConstraint.getAnnotation().value();
    final Column col = getColumn( property );
    final String checkConstraint = col.getQuotedName(dialect) + ">=" + min;
    applySQLCheck( col, checkConstraint );
  }
}
origin: org.hibernate.orm/hibernate-core

private static void applyMax(PersistentAttributeMapping property, ConstraintDescriptor<?> descriptor, Dialect dialect) {
  if ( Max.class.equals( descriptor.getAnnotation().annotationType() ) ) {
    @SuppressWarnings("unchecked")
    final ConstraintDescriptor<Max> maxConstraint = (ConstraintDescriptor<Max>) descriptor;
    final long max = maxConstraint.getAnnotation().value();
    final Column col = getColumn( property );
    final String checkConstraint = col.getQuotedName(dialect) + "<=" + max;
    applySQLCheck( col, checkConstraint );
  }
}
origin: org.hibernate.orm/hibernate-core

private static void applyDigits(PersistentAttributeMapping property, ConstraintDescriptor<?> descriptor) {
  if ( Digits.class.equals( descriptor.getAnnotation().annotationType() ) ) {
    @SuppressWarnings("unchecked")
    final ConstraintDescriptor<Digits> digitsConstraint = (ConstraintDescriptor<Digits>) descriptor;
    final int integerDigits = digitsConstraint.getAnnotation().integer();
    final int fractionalDigits = digitsConstraint.getAnnotation().fraction();
    final Column col = getColumn( property );
    col.setPrecision( integerDigits + fractionalDigits );
    col.setScale( fractionalDigits );
  }
}
org.hibernate.cfg.beanvalidationTypeSafeActivatorgetColumn

Popular methods of TypeSafeActivator

  • applyConstraints
  • applyDDL
  • applyDigits
  • applyLength
  • applyMax
  • applyMin
  • applyNotNull
  • applySize
  • findPropertyByName
  • getValidatorFactory
  • applySQLCheck
  • applyCallbackListeners
  • applySQLCheck,
  • applyCallbackListeners,
  • applyRelationalConstraints,
  • resolveProvidedFactory,
  • isComposite

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • setContentView (Activity)
  • orElseThrow (Optional)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
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