congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Log.getIsDefinedTwiceInMappingXmlForBeanException
Code IndexAdd Tabnine to your IDE (free)

How to use
getIsDefinedTwiceInMappingXmlForBeanException
method
in
org.hibernate.validator.internal.util.logging.Log

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getIsDefinedTwiceInMappingXmlForBeanException (Showing top 4 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private static Field findField(Class<?> beanClass, String fieldName, List<String> alreadyProcessedFieldNames) {
  if ( alreadyProcessedFieldNames.contains( fieldName ) ) {
    throw log.getIsDefinedTwiceInMappingXmlForBeanException( fieldName, beanClass );
  }
  else {
    alreadyProcessedFieldNames.add( fieldName );
  }
  final Field field = run( GetDeclaredField.action( beanClass, fieldName ) );
  if ( field == null ) {
    throw log.getBeanDoesNotContainTheFieldException( beanClass, fieldName );
  }
  return field;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private static Method findGetter(Class<?> beanClass, String getterName, List<String> alreadyProcessedGetterNames) {
  if ( alreadyProcessedGetterNames.contains( getterName ) ) {
    throw log.getIsDefinedTwiceInMappingXmlForBeanException( getterName, beanClass );
  }
  else {
    alreadyProcessedGetterNames.add( getterName );
  }
  final Method method = run( GetMethodFromPropertyName.action( beanClass, getterName ) );
  if ( method == null ) {
    throw log.getBeanDoesNotContainThePropertyException( beanClass, getterName );
  }
  return method;
}
origin: org.hibernate.validator/hibernate-validator

ConstrainedExecutable build(Class<?> beanClass, List<String> alreadyProcessedGetterNames) {
  if ( alreadyProcessedGetterNames.contains( mainAttributeValue ) ) {
    throw LOG.getIsDefinedTwiceInMappingXmlForBeanException( mainAttributeValue, beanClass );
origin: org.hibernate.validator/hibernate-validator

ConstrainedField build(Class<?> beanClass, List<String> alreadyProcessedFieldNames) {
  if ( alreadyProcessedFieldNames.contains( mainAttributeValue ) ) {
    throw LOG.getIsDefinedTwiceInMappingXmlForBeanException( mainAttributeValue, beanClass );
  }
  else {
    alreadyProcessedFieldNames.add( mainAttributeValue );
  }
  Field field = findField( beanClass, mainAttributeValue );
  ConstraintLocation constraintLocation = ConstraintLocation.forField( field );
  Set<MetaConstraint<?>> metaConstraints = constraintTypeStaxBuilders.stream()
      .map( builder -> builder.build( constraintLocation, java.lang.annotation.ElementType.FIELD, null ) )
      .collect( Collectors.toSet() );
  ContainerElementTypeConfiguration containerElementTypeConfiguration = getContainerElementTypeConfiguration(
      ReflectionHelper.typeOf( field ), constraintLocation );
  ConstrainedField constrainedField = new ConstrainedField(
      ConfigurationSource.XML,
      field,
      metaConstraints,
      containerElementTypeConfiguration.getMetaConstraints(),
      getCascadingMetaData( containerElementTypeConfiguration.getTypeParametersCascadingMetaData(), ReflectionHelper.typeOf( field ) )
  );
  // ignore annotations
  if ( ignoreAnnotations.isPresent() ) {
    annotationProcessingOptions.ignoreConstraintAnnotationsOnMember(
        field,
        ignoreAnnotations.get()
    );
  }
  return constrainedField;
}
org.hibernate.validator.internal.util.loggingLoggetIsDefinedTwiceInMappingXmlForBeanException

Popular methods of Log

  • getInvalidRegularExpressionException
  • getInvalidLengthForFractionPartException
  • getInvalidLengthForIntegerPartException
  • getLengthCannotBeNegativeException
  • getMaxCannotBeNegativeException
  • getMinCannotBeNegativeException
  • debug
  • debugf
  • errorInExpressionLanguage
  • evaluatingExpressionLanguageExpressionCausedException
  • getAnnotationDoesNotContainAParameterException
  • getAtLeastOneCustomMessageMustBeCreatedException
  • getAnnotationDoesNotContainAParameterException,
  • getAtLeastOneCustomMessageMustBeCreatedException,
  • getAtLeastOneGroupHasToBeSpecifiedException,
  • getAttemptToSpecifyAnArrayWhereSingleValueIsExpectedException,
  • getBeanClassHasAlreadyBeConfiguredViaProgrammaticApiException,
  • getBeanClassMustBePartOfRedefinedDefaultGroupSequenceException,
  • getBeanDoesNotContainConstructorException,
  • getBeanDoesNotContainMethodException,
  • getBeanDoesNotContainTheFieldException,
  • getBeanDoesNotContainThePropertyException

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 12 Jupyter Notebook Extensions
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