mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
Change validation message for telephone number
This commit is contained in:
parent
b04e046891
commit
a44e43d8a0
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ public class Owner extends Person {
|
|||
|
||||
@Column(name = "telephone")
|
||||
@NotBlank
|
||||
@Pattern(regexp = "\\d{10}", message = "Telephone must be a 10-digit number")
|
||||
@Pattern(regexp = "\\d{10}", message = "Please enter a valid 10-digit phone number!")
|
||||
private String telephone;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.navbar {
|
||||
border-top: 4px solid #6db33f;
|
||||
border-top: 10px solid #d08c27;
|
||||
background-color: #34302d;
|
||||
margin-bottom: 0px;
|
||||
border-bottom: 0;
|
||||
|
|
Loading…
Reference in a new issue