krasa / krasa-jaxb-tools

XJC / JAXB plugin for generation of Bean Validation Annotations (JSR-303) and replacing primitive types
Apache License 2.0
60 stars 49 forks source link

Do not use @Pattern.List for multiple patterns #54

Closed rosko01 closed 3 years ago

rosko01 commented 8 years ago

Plugin generates incorrect Bean Validation Annotations for Multiple patterns per restriction. The XSD validation treats multiple patterns as if logical OR was implied, and bean validation @Pattern.List treats them as logical AND.