mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
Merge 7b9760c42e into fd4361b118
This commit is contained in:
commit
0eb5a5d510
1 changed files with 3 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ public class Owner extends Person {
|
|||
this.city = city;
|
||||
}
|
||||
|
||||
@NotBlank
|
||||
@Pattern(regexp = "\\d{10}", message = "Telephone must be a 10-digit number")
|
||||
@Column(name = "telephone")
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue