This commit is contained in:
kriti20041 2025-12-25 14:28:49 +00:00 committed by GitHub
commit 0eb5a5d510
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}