From 2c6c52cff88693ad635e9ad80fa13f6f0e4cdd6f Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Fri, 4 May 2018 10:35:01 +0200 Subject: [PATCH 1/7] upgrade java version to 9; upgrade maven version; upgrade version of used dependencies and plugins --- pom.xml | 54 +++++++++++++++++++---------------- valdr-bean-validation/pom.xml | 13 ++++++++- 2 files changed, 42 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index e4b9454..791b824 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ 2014 - 3.0.3 + 3.5.2 @@ -79,35 +79,35 @@ UTF-8 UTF-8 - 1.7 - 1.7 + 9 + 9 - 3.1 - 1.5 - 2.9.1 - 2.6 - 2.5 - 2.2.1 - 1.6.5 + 3.7.0 + 1.6 + 3.0.0 + 3.1.0 + 2.5.3 + 3.0.1 + 1.6.7 - 1.1.0.Final - 3.3.2 - 1.2 - 2.4 - 17.0 + 2.0.1.Final + 3.7 + 1.4 + 2.6 + 23.0 1.3 - 1.0.0.Final - 5.1.1.Final - 2.4.0 - 4.11 - 1.14.0 - 1.9.5 + 1.0.2 + 6.0.9.Final + 2.9.5 + 4.12 + 1.16.20 + 2.18.3 0.9.9 - 3.0.1 - 1.7.7 - 4.0.5.RELEASE + 4.0.0 + 1.7.9 + 5.0.5.RELEASE @@ -190,6 +190,12 @@ ${spring.version} test + + org.springframework + spring-web + ${spring.version} + test + org.hamcrest hamcrest-library diff --git a/valdr-bean-validation/pom.xml b/valdr-bean-validation/pom.xml index 3315c9d..bc437cb 100644 --- a/valdr-bean-validation/pom.xml +++ b/valdr-bean-validation/pom.xml @@ -48,6 +48,12 @@ hibernate-validator + + javax.xml.bind + jaxb-api + 2.3.0 + + javax.servlet @@ -71,6 +77,11 @@ spring-test test + + org.springframework + spring-web + test + org.slf4j slf4j-simple @@ -108,7 +119,7 @@ org.jacoco jacoco-maven-plugin - 0.7.0.201403182114 + 0.8.1 com/github/valdr/thirdparty/**/*.class From 8f0a62ef52b0d729b15eaa2a4733a7d490fd858e Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Fri, 4 May 2018 10:57:49 +0200 Subject: [PATCH 2/7] Updated IDEA files --- .idea/checkstyle-idea.xml | 16 ++++++ .idea/codeStyles/Project.xml | 7 +++ .idea/compiler.xml | 12 ++-- .idea/misc.xml | 56 +------------------ .../valdr-bean-validation-demo.iml | 33 ++++++----- valdr-bean-validation-parent.iml | 2 +- .../valdr-bean-validation.iml | 55 ++++++++++-------- 7 files changed, 81 insertions(+), 100 deletions(-) create mode 100644 .idea/checkstyle-idea.xml create mode 100644 .idea/codeStyles/Project.xml diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..f75a1f8 --- /dev/null +++ b/.idea/checkstyle-idea.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..b3295c5 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index e86c853..c4c5b03 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -29,13 +29,9 @@ - - - - - - + + + - - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 55a314f..c681046 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,6 @@ - @@ -16,58 +15,7 @@ - + - - - - - - - - - - - - 1.7 - - - - - - - - 1.7 - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/valdr-bean-validation-demo/valdr-bean-validation-demo.iml b/valdr-bean-validation-demo/valdr-bean-validation-demo.iml index eb17b9b..6074017 100644 --- a/valdr-bean-validation-demo/valdr-bean-validation-demo.iml +++ b/valdr-bean-validation-demo/valdr-bean-validation-demo.iml @@ -12,7 +12,7 @@ - + @@ -23,21 +23,26 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/valdr-bean-validation-parent.iml b/valdr-bean-validation-parent.iml index b26c4d0..d9b63bb 100644 --- a/valdr-bean-validation-parent.iml +++ b/valdr-bean-validation-parent.iml @@ -1,6 +1,6 @@ - + diff --git a/valdr-bean-validation/valdr-bean-validation.iml b/valdr-bean-validation/valdr-bean-validation.iml index 0a0ba32..d1f5c45 100644 --- a/valdr-bean-validation/valdr-bean-validation.iml +++ b/valdr-bean-validation/valdr-bean-validation.iml @@ -1,6 +1,6 @@ - + @@ -12,32 +12,41 @@ - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - + + + + + + - - - + + + + + \ No newline at end of file From a417d516818c98859b92dd57732896570346736a Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Fri, 4 May 2018 13:20:46 +0200 Subject: [PATCH 3/7] fix warnings for depricated methods; use build in email constraint from javax.validation, because the one from hibernate is depricated --- .../com/github/valdr/BuiltInConstraint.java | 49 ++++++++++--------- .../github/valdr/ConstraintParserTest.java | 12 ++--- .../github/valdr/ValdrBeanValidationTest.java | 15 +++--- .../valdr/ValidationRulesServletTest.java | 11 ++--- .../model/f/TestModelWithEmailAnnotation.java | 8 +++ ...TestModelWithHibernateEmailAnnotation.java | 8 --- 6 files changed, 53 insertions(+), 50 deletions(-) create mode 100644 valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithEmailAnnotation.java delete mode 100644 valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithHibernateEmailAnnotation.java diff --git a/valdr-bean-validation/src/main/java/com/github/valdr/BuiltInConstraint.java b/valdr-bean-validation/src/main/java/com/github/valdr/BuiltInConstraint.java index 62f89a4..1635ac9 100644 --- a/valdr-bean-validation/src/main/java/com/github/valdr/BuiltInConstraint.java +++ b/valdr-bean-validation/src/main/java/com/github/valdr/BuiltInConstraint.java @@ -3,13 +3,13 @@ import com.github.valdr.decorator.AbstractConstraintAttributesDecorator; import com.github.valdr.decorator.NullDecorator; import com.github.valdr.decorator.PatternDecorator; -import com.google.common.base.Function; -import com.google.common.collect.Iterables; -import lombok.Getter; -import lombok.SneakyThrows; -import org.hibernate.validator.constraints.Email; + +import java.lang.annotation.Annotation; +import java.util.Arrays; +import java.util.stream.Collectors; import javax.validation.constraints.Digits; +import javax.validation.constraints.Email; import javax.validation.constraints.Future; import javax.validation.constraints.Max; import javax.validation.constraints.Min; @@ -17,8 +17,9 @@ import javax.validation.constraints.Past; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; -import java.lang.annotation.Annotation; -import java.util.Arrays; + +import lombok.Getter; +import lombok.SneakyThrows; /** * All constraints currently supported out-of-the-box by valdr Bean Validation. Each value represents a constraint @@ -28,10 +29,16 @@ public enum BuiltInConstraint { // CHECKSTYLE:OFF - REQUIRED("required", NotNull.class), MIN("min", Min.class), MAX("max", Max.class), SIZE("size", Size.class), - DIGITS("digits", Digits.class), PATTERN("pattern", Pattern.class, PatternDecorator.class), FUTURE("future", - Future.class), PAST("past", Past.class), EMAIL("hibernateEmail", Email.class), URL("hibernateUrl", - org.hibernate.validator.constraints.URL.class); + REQUIRED("required", NotNull.class), + MIN("min", Min.class), + MAX("max", Max.class), + SIZE("size", Size.class), + DIGITS("digits", Digits.class), + PATTERN("pattern", Pattern.class, PatternDecorator.class), + FUTURE("future", Future.class), + PAST("past", Past.class), + EMAIL("email", Email.class), + URL("hibernateUrl", org.hibernate.validator.constraints.URL.class); // CHECKSTYLE:ON @Getter @@ -39,12 +46,12 @@ public enum BuiltInConstraint { private final Class decorator; private final String camelCaseName; - private BuiltInConstraint(String camelCaseName, Class beanValidationAnnotation) { + BuiltInConstraint(String camelCaseName, Class beanValidationAnnotation) { this(camelCaseName, beanValidationAnnotation, NullDecorator.class); } - private BuiltInConstraint(String camelCaseName, Class beanValidationAnnotation, - Class decorator) { + BuiltInConstraint(String camelCaseName, Class beanValidationAnnotation, + Class decorator) { this.camelCaseName = camelCaseName; this.decorator = decorator; this.beanValidationAnnotation = beanValidationAnnotation; @@ -72,16 +79,12 @@ public AbstractConstraintAttributesDecorator createDecoratorFor(ConstraintAttrib * @return all collected annotation classes */ public static Iterable> getAllBeanValidationAnnotations() { - return Iterables.transform(Arrays.asList(values()), new Function>() { - - @Override - public Class apply(BuiltInConstraint input) { - if (input == null) { - throw new NullPointerException("Passed validator must not be null."); - } - return input.getBeanValidationAnnotation(); + return Arrays.stream(values()).map(input -> { + if (input == null) { + throw new NullPointerException("Passed validator must not be null."); } - }); + return input.getBeanValidationAnnotation(); + }).collect(Collectors.toList()); } /** diff --git a/valdr-bean-validation/src/test/java/com/github/valdr/ConstraintParserTest.java b/valdr-bean-validation/src/test/java/com/github/valdr/ConstraintParserTest.java index bac950d..6b92466 100644 --- a/valdr-bean-validation/src/test/java/com/github/valdr/ConstraintParserTest.java +++ b/valdr-bean-validation/src/test/java/com/github/valdr/ConstraintParserTest.java @@ -9,7 +9,7 @@ import com.github.valdr.model.d.SubClassWithNoValidatedMembers; import com.github.valdr.model.d.SuperClassWithValidatedMember; import com.github.valdr.model.e.TestModelClassWithLotsOfIrrelevantAnnotations; -import com.github.valdr.model.f.TestModelWithHibernateEmailAnnotation; +import com.github.valdr.model.f.TestModelWithEmailAnnotation; import com.github.valdr.model.g.TestModelWithHibernateUrlAnnotation; import com.github.valdr.model.h.TestModelWithPatterns; import com.github.valdr.model.validation.CustomValidation; @@ -155,16 +155,16 @@ public void shouldProcessConfiguredCustomAnnotation() { * See method name. */ @Test - public void shouldSupportHibernateEmailAnnotation() { + public void shouldSupportEmailAnnotation() { // given - parserConfiguredFor(Lists.newArrayList(TestModelWithHibernateEmailAnnotation.class.getPackage().getName()), + parserConfiguredFor(Lists.newArrayList(TestModelWithEmailAnnotation.class.getPackage().getName()), emptyStringList()); // when String json = parser.parse(); // then - assertThat(json, containsString(TestModelWithHibernateEmailAnnotation.class.getSimpleName())); - assertThat(json, containsString("hibernateEmail")); - assertThat(json, containsString("{org.hibernate.validator.constraints.Email.message}")); + assertThat(json, containsString(TestModelWithEmailAnnotation.class.getSimpleName())); + assertThat(json, containsString("email")); + assertThat(json, containsString("{javax.validation.constraints.Email.message}")); } /** diff --git a/valdr-bean-validation/src/test/java/com/github/valdr/ValdrBeanValidationTest.java b/valdr-bean-validation/src/test/java/com/github/valdr/ValdrBeanValidationTest.java index efa2457..bd0f7d9 100644 --- a/valdr-bean-validation/src/test/java/com/github/valdr/ValdrBeanValidationTest.java +++ b/valdr-bean-validation/src/test/java/com/github/valdr/ValdrBeanValidationTest.java @@ -2,14 +2,16 @@ import com.github.valdr.cli.ValdrBeanValidation; import com.github.valdr.util.SysOutSlurper; -import lombok.SneakyThrows; + import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.junit.Test; import java.io.File; import java.io.FileWriter; import java.io.IOException; +import java.nio.charset.Charset; + +import lombok.SneakyThrows; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; @@ -73,8 +75,7 @@ public void shouldComplainAboutInvalidConfigurations() { ValdrBeanValidation.main(args); } catch (Exception e) { // expect - assertThat(e.getClass().getName().toString(), is(Options.InvalidConfigurationException.class.getName().toString - ())); + assertThat(e.getClass().getName(), is(Options.InvalidConfigurationException.class.getName())); } } @@ -112,14 +113,14 @@ public void shouldPrintToPrintToOutputFileIfConfigured() throws IOException { ValdrBeanValidation.main(args); // then - assertThat(FileUtils.readFileToString(outputTempFile), is("{ }")); + assertThat(FileUtils.readFileToString(outputTempFile, Charset.defaultCharset()), is("{ }")); } private String createTempFile(String string) throws IOException { File tempFile = File.createTempFile("valdr", "json"); FileWriter writer = new FileWriter(tempFile); - IOUtils.write(string, writer); - IOUtils.closeQuietly(writer); + writer.write(string); + writer.close(); return tempFile.getAbsolutePath(); } diff --git a/valdr-bean-validation/src/test/java/com/github/valdr/ValidationRulesServletTest.java b/valdr-bean-validation/src/test/java/com/github/valdr/ValidationRulesServletTest.java index 0e902ca..66be7d0 100644 --- a/valdr-bean-validation/src/test/java/com/github/valdr/ValidationRulesServletTest.java +++ b/valdr-bean-validation/src/test/java/com/github/valdr/ValidationRulesServletTest.java @@ -1,25 +1,24 @@ package com.github.valdr; -import org.apache.commons.io.IOUtils; import org.junit.Before; import org.junit.Test; import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.test.util.ReflectionTestUtils; -import javax.servlet.ServletConfig; -import javax.servlet.ServletException; import java.io.File; import java.io.FileWriter; import java.io.IOException; +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; + import static org.hamcrest.Matchers.containsString; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import static org.mockito.BDDMockito.given; import static org.mockito.BDDMockito.mock; -import static org.mockito.Matchers.contains; /** * Tests ValidationRulesServlet. @@ -120,8 +119,8 @@ private void givenThisConfiguration(String jsonString) throws IOException { private String createTempFile(String string) throws IOException { File tempFile = File.createTempFile("valdr", "json"); FileWriter writer = new FileWriter(tempFile); - IOUtils.write(string, writer); - IOUtils.closeQuietly(writer); + writer.write(string); + writer.close(); return tempFile.getAbsolutePath(); } } diff --git a/valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithEmailAnnotation.java b/valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithEmailAnnotation.java new file mode 100644 index 0000000..d8b363f --- /dev/null +++ b/valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithEmailAnnotation.java @@ -0,0 +1,8 @@ +package com.github.valdr.model.f; + +import javax.validation.constraints.Email; + +public class TestModelWithEmailAnnotation { + @Email + private String email; +} diff --git a/valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithHibernateEmailAnnotation.java b/valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithHibernateEmailAnnotation.java deleted file mode 100644 index fc63b72..0000000 --- a/valdr-bean-validation/src/test/java/com/github/valdr/model/f/TestModelWithHibernateEmailAnnotation.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.github.valdr.model.f; - -import org.hibernate.validator.constraints.Email; - -public class TestModelWithHibernateEmailAnnotation { - @Email - private String email; -} From 42fdbfd0a9c6cccbe7cde67decdaceef3b39344a Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Thu, 10 May 2018 09:57:38 +0200 Subject: [PATCH 4/7] update jdk version in travis configuration --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5d850c7..df907e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: java jdk: -- oraclejdk8 +- oraclejdk9 after_success: - mvn -pl :valdr-bean-validation clean test jacoco:report coveralls:jacoco env: From 933858cc70a7cb556d73d6e8fa5c46c60be918bb Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Thu, 10 May 2018 10:53:23 +0200 Subject: [PATCH 5/7] use Java 8 as java version in order to be runnable on Java 8 --- .idea/compiler.xml | 6 +++--- .idea/misc.xml | 2 +- .travis.yml | 2 +- pom.xml | 4 ++-- valdr-bean-validation-demo/valdr-bean-validation-demo.iml | 2 +- valdr-bean-validation-parent.iml | 2 +- valdr-bean-validation/valdr-bean-validation.iml | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index c4c5b03..e12baa7 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -29,9 +29,9 @@ - - - + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index c681046..a01d4cc 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -15,7 +15,7 @@ - + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index df907e8..5d850c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: java jdk: -- oraclejdk9 +- oraclejdk8 after_success: - mvn -pl :valdr-bean-validation clean test jacoco:report coveralls:jacoco env: diff --git a/pom.xml b/pom.xml index 791b824..24b741d 100644 --- a/pom.xml +++ b/pom.xml @@ -79,8 +79,8 @@ UTF-8 UTF-8 - 9 - 9 + 1.8 + 1.8 3.7.0 diff --git a/valdr-bean-validation-demo/valdr-bean-validation-demo.iml b/valdr-bean-validation-demo/valdr-bean-validation-demo.iml index 6074017..366f95e 100644 --- a/valdr-bean-validation-demo/valdr-bean-validation-demo.iml +++ b/valdr-bean-validation-demo/valdr-bean-validation-demo.iml @@ -12,7 +12,7 @@ - + diff --git a/valdr-bean-validation-parent.iml b/valdr-bean-validation-parent.iml index d9b63bb..9e16274 100644 --- a/valdr-bean-validation-parent.iml +++ b/valdr-bean-validation-parent.iml @@ -1,6 +1,6 @@ - + diff --git a/valdr-bean-validation/valdr-bean-validation.iml b/valdr-bean-validation/valdr-bean-validation.iml index d1f5c45..eda4d6e 100644 --- a/valdr-bean-validation/valdr-bean-validation.iml +++ b/valdr-bean-validation/valdr-bean-validation.iml @@ -1,6 +1,6 @@ - + From 3af21f322ff3de089bd6bf13f5274164a31d9eac Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Fri, 11 May 2018 00:10:50 +0200 Subject: [PATCH 6/7] remove jaxb-api dependency that was added because of java 9; fix warning for hibernate-validator dependency (it was relocated from org.hibernate to org.hibernate.validator) --- pom.xml | 2 +- valdr-bean-validation-demo/pom.xml | 2 +- valdr-bean-validation-demo/valdr-bean-validation-demo.iml | 1 - valdr-bean-validation/pom.xml | 8 +------- valdr-bean-validation/valdr-bean-validation.iml | 1 - 5 files changed, 3 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 24b741d..a9e6e72 100644 --- a/pom.xml +++ b/pom.xml @@ -133,7 +133,7 @@ ${bean-validation.version} - org.hibernate + org.hibernate.validator hibernate-validator ${hibernate-validator.version} diff --git a/valdr-bean-validation-demo/pom.xml b/valdr-bean-validation-demo/pom.xml index 9b96162..190193a 100644 --- a/valdr-bean-validation-demo/pom.xml +++ b/valdr-bean-validation-demo/pom.xml @@ -21,7 +21,7 @@ ${project.version} - org.hibernate + org.hibernate.validator hibernate-validator diff --git a/valdr-bean-validation-demo/valdr-bean-validation-demo.iml b/valdr-bean-validation-demo/valdr-bean-validation-demo.iml index 366f95e..e16ca87 100644 --- a/valdr-bean-validation-demo/valdr-bean-validation-demo.iml +++ b/valdr-bean-validation-demo/valdr-bean-validation-demo.iml @@ -39,7 +39,6 @@ - diff --git a/valdr-bean-validation/pom.xml b/valdr-bean-validation/pom.xml index bc437cb..57f3601 100644 --- a/valdr-bean-validation/pom.xml +++ b/valdr-bean-validation/pom.xml @@ -44,16 +44,10 @@ commons-io - org.hibernate + org.hibernate.validator hibernate-validator - - javax.xml.bind - jaxb-api - 2.3.0 - - javax.servlet diff --git a/valdr-bean-validation/valdr-bean-validation.iml b/valdr-bean-validation/valdr-bean-validation.iml index eda4d6e..e07368d 100644 --- a/valdr-bean-validation/valdr-bean-validation.iml +++ b/valdr-bean-validation/valdr-bean-validation.iml @@ -31,7 +31,6 @@ - From 0cba48026994ac0fcd7b2f02cf369f12e321bb0d Mon Sep 17 00:00:00 2001 From: Valerija Velinovska Date: Tue, 18 Dec 2018 11:23:01 +0100 Subject: [PATCH 7/7] update urls of bean validation constraints in readme file --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9b3460f..0a76262 100644 --- a/README.md +++ b/README.md @@ -126,15 +126,15 @@ The [BuiltInConstraint.java](https://github.com/netceteragroup/valdr-bean-valida | Bean Validation | valdr | Comment | |-----------------|-------|---------| -| [NotNull](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/NotNull.html) | [required](https://github.com/netceteragroup/valdr#required) | | -| [Min](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Min.html) | [min](https://github.com/netceteragroup/valdr#min--max) | | -| [Max](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Max.html) | [max](https://github.com/netceteragroup/valdr#min--max) | | -| [Size](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Size.html) | [size](https://github.com/netceteragroup/valdr#size) | | -| [Digits](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Digits.html) | [digits](https://github.com/netceteragroup/valdr#digits) | | -| [Pattern](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Pattern.html) | [pattern](https://github.com/netceteragroup/valdr#partern) | Java regex pattern is transformed to JavaScript pattern | -| [Future](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Future.html) | [future](https://github.com/netceteragroup/valdr#future--past) | | -| [Past](http://docs.oracle.com/javaee/7/api/javax/validation/constraints/Past.html) | [past](https://github.com/netceteragroup/valdr#future--past) | | -| [Email](https://docs.jboss.org/hibernate/validator/5.1/api/org/hibernate/validator/constraints/Email.html) |[email](https://github.com/netceteragroup/valdr#email) | proprietary Hibernate Validator (not in Bean Validation spec) | +| [NotNull](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/NotNull.html) | [required](https://github.com/netceteragroup/valdr#required) | | +| [Min](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Min.html) | [min](https://github.com/netceteragroup/valdr#min--max) | | +| [Max](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Max.html) | [max](https://github.com/netceteragroup/valdr#min--max) | | +| [Size](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Size.html) | [size](https://github.com/netceteragroup/valdr#size) | | +| [Digits](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Digits.html) | [digits](https://github.com/netceteragroup/valdr#digits) | | +| [Pattern](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Pattern.html) | [pattern](https://github.com/netceteragroup/valdr#partern) | Java regex pattern is transformed to JavaScript pattern | +| [Future](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Future.html) | [future](https://github.com/netceteragroup/valdr#future--past) | | +| [Past](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Past.html) | [past](https://github.com/netceteragroup/valdr#future--past) | | +| [Email](https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Email.html) |[email](https://github.com/netceteragroup/valdr#email) | | | [URL](https://docs.jboss.org/hibernate/validator/5.1/api/org/hibernate/validator/constraints/URL.html) |[url](https://github.com/netceteragroup/valdr#url) | proprietary Hibernate Validator (not in Bean Validation spec) | ## Support