congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Collectors (java.util.stream)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now