-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from /issues/220-rest-model-toString-equals
Fix #220: ToString and Equals for ObjectResponse and ObjectRequest
- Loading branch information
Showing
4 changed files
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,16 @@ | |
|
||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Transport object for RESTful API representing an error instance. | ||
* | ||
* @author Petr Dvorak, [email protected] | ||
*/ | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Error { | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,16 @@ | |
|
||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Simple status only response object. | ||
* | ||
* @author Petr Dvorak, [email protected] | ||
*/ | ||
@EqualsAndHashCode | ||
@ToString | ||
public class Response { | ||
|
||
/** | ||
|
@@ -46,7 +50,7 @@ public static class Status { | |
* Response status. | ||
*/ | ||
@NotBlank | ||
protected String status; | ||
private String status; | ||
|
||
/** | ||
* Default constructor. | ||
|