BAEL-112 - custom validator - format fixes

This commit is contained in:
slavisa-baeldung
2017-03-18 09:20:33 +00:00
parent f8bd663f7d
commit 42f1ef0bf3
4 changed files with 25 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ package com.baeldung.model;
import com.baeldung.customvalidator.ContactNumberConstraint;
public class ValidatedPhone {
@ContactNumberConstraint
private String phone;
@@ -15,4 +15,8 @@ public class ValidatedPhone {
this.phone = phone;
}
@Override
public String toString() {
return phone;
}
}