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 #56

Closed rosko01 closed 7 years ago

rosko01 commented 8 years ago

An XML <restriction> containing more than one <pattern> element is NOT equivalent to a @Pattern.List annotation. The former ORs its patterns whereas the later ANDs them. Use regex | instead.

Fix for Issue #54