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

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

Best Java code snippets using org.hibernate.cfg.beanvalidation.TypeSafeActivator.isComposite (Showing top 3 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

@SuppressWarnings("unchecked")
private static boolean applyNotNull(PersistentAttributeMapping property, ConstraintDescriptor<?> descriptor) {
  boolean hasNotNull = false;
  if ( NotNull.class.equals( descriptor.getAnnotation().annotationType() ) ) {
    // single table inheritance should not be forced to null due to shared state
    if ( !( property.getEntity() instanceof SingleTableSubclass ) ) {
      //composite should not add not-null on all columns
      if ( !isComposite( property ) ) {
        List<MappedColumn> mappedColumns = property.getValueMapping().getMappedColumns();
        mappedColumns.forEach( mappedColumn -> {
          if ( Column.class.isInstance( mappedColumn ) ) {
            Column.class.cast( mappedColumn ).setNullable( false );
          }
          else {
            LOG.debugf(
                "@NotNull was applied to attribute [%s] which is defined (at least partially) " +
                    "by formula(s); formula portions will be skipped",
                property.getName()
            );
          }
        } );
      }
    }
    hasNotNull = true;
  }
  return hasNotNull;
}
origin: org.hibernate.orm/hibernate-core

if ( !isComposite( property) ) {
  return null;
if ( !isComposite(property) ) {
  return null;
origin: org.hibernate.orm/hibernate-core

    propertyDesc.getConstraintDescriptors(), property, propertyDesc, groups, activateNotNull, dialect
);
if ( isComposite( property ) && propertyDesc.isCascaded() ) {
  Class<?> componentClass = ( (Component) property.getValueMapping() ).getComponentClass();
org.hibernate.cfg.beanvalidationTypeSafeActivatorisComposite

Popular methods of TypeSafeActivator

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

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