[Play Framework] Update the bean validation to use version 2.0. (#8354)

* Update the bean validation to use version 2.0. For a reason I don't know, it was not working anymore with version 1.

* better format

Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
Jean-François Côté
2021-01-22 21:58:36 -05:00
committed by GitHub
parent 96da7aaf9d
commit 030b75b012
117 changed files with 849 additions and 448 deletions

View File

@@ -25,7 +25,7 @@ public class Category {
* Get id
* @return id
**/
public Long getId() {
public Long getId() {
return id;
}
@@ -42,7 +42,7 @@ public class Category {
* Get name
* @return name
**/
public String getName() {
public String getName() {
return name;
}

View File

@@ -28,7 +28,7 @@ public class ModelApiResponse {
* Get code
* @return code
**/
public Integer getCode() {
public Integer getCode() {
return code;
}
@@ -45,7 +45,7 @@ public class ModelApiResponse {
* Get type
* @return type
**/
public String getType() {
public String getType() {
return type;
}
@@ -62,7 +62,7 @@ public class ModelApiResponse {
* Get message
* @return message
**/
public String getMessage() {
public String getMessage() {
return message;
}

View File

@@ -71,7 +71,7 @@ public class Order {
* Get id
* @return id
**/
public Long getId() {
public Long getId() {
return id;
}
@@ -88,7 +88,7 @@ public class Order {
* Get petId
* @return petId
**/
public Long getPetId() {
public Long getPetId() {
return petId;
}
@@ -105,7 +105,7 @@ public class Order {
* Get quantity
* @return quantity
**/
public Integer getQuantity() {
public Integer getQuantity() {
return quantity;
}
@@ -122,7 +122,7 @@ public class Order {
* Get shipDate
* @return shipDate
**/
public OffsetDateTime getShipDate() {
public OffsetDateTime getShipDate() {
return shipDate;
}
@@ -139,7 +139,7 @@ public class Order {
* Order Status
* @return status
**/
public StatusEnum getStatus() {
public StatusEnum getStatus() {
return status;
}
@@ -156,7 +156,7 @@ public class Order {
* Get complete
* @return complete
**/
public Boolean getComplete() {
public Boolean getComplete() {
return complete;
}

View File

@@ -74,7 +74,7 @@ public class Pet {
* Get id
* @return id
**/
public Long getId() {
public Long getId() {
return id;
}
@@ -91,7 +91,7 @@ public class Pet {
* Get category
* @return category
**/
public Category getCategory() {
public Category getCategory() {
return category;
}
@@ -108,7 +108,7 @@ public class Pet {
* Get name
* @return name
**/
public String getName() {
public String getName() {
return name;
}
@@ -130,7 +130,7 @@ public class Pet {
* Get photoUrls
* @return photoUrls
**/
public List<String> getPhotoUrls() {
public List<String> getPhotoUrls() {
return photoUrls;
}
@@ -155,7 +155,7 @@ public class Pet {
* Get tags
* @return tags
**/
public List<Tag> getTags() {
public List<Tag> getTags() {
return tags;
}
@@ -172,7 +172,7 @@ public class Pet {
* pet status in the store
* @return status
**/
public StatusEnum getStatus() {
public StatusEnum getStatus() {
return status;
}

View File

@@ -25,7 +25,7 @@ public class Tag {
* Get id
* @return id
**/
public Long getId() {
public Long getId() {
return id;
}
@@ -42,7 +42,7 @@ public class Tag {
* Get name
* @return name
**/
public String getName() {
public String getName() {
return name;
}

View File

@@ -43,7 +43,7 @@ public class User {
* Get id
* @return id
**/
public Long getId() {
public Long getId() {
return id;
}
@@ -60,7 +60,7 @@ public class User {
* Get username
* @return username
**/
public String getUsername() {
public String getUsername() {
return username;
}
@@ -77,7 +77,7 @@ public class User {
* Get firstName
* @return firstName
**/
public String getFirstName() {
public String getFirstName() {
return firstName;
}
@@ -94,7 +94,7 @@ public class User {
* Get lastName
* @return lastName
**/
public String getLastName() {
public String getLastName() {
return lastName;
}
@@ -111,7 +111,7 @@ public class User {
* Get email
* @return email
**/
public String getEmail() {
public String getEmail() {
return email;
}
@@ -128,7 +128,7 @@ public class User {
* Get password
* @return password
**/
public String getPassword() {
public String getPassword() {
return password;
}
@@ -145,7 +145,7 @@ public class User {
* Get phone
* @return phone
**/
public String getPhone() {
public String getPhone() {
return phone;
}
@@ -162,7 +162,7 @@ public class User {
* User Status
* @return userStatus
**/
public Integer getUserStatus() {
public Integer getUserStatus() {
return userStatus;
}