-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade license-service to Spring Boot 2.2.9
- Loading branch information
1 parent
7dd89e2
commit fae271d
Showing
27 changed files
with
217 additions
and
482 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
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 |
---|---|---|
@@ -1,34 +1,16 @@ | ||
#Spring | ||
springVersion=2.0.4.RELEASE | ||
springTestVersion=5.1.8.RELEASE | ||
springCloudVersion=Finchley.RELEASE | ||
springCloudServicesVersion=2.0.3.RELEASE | ||
springJdbcVersion=4.3.9.RELEASE | ||
reactorTestVersion=3.1.7.RELEASE | ||
springCloudVersion=Hoxton.RELEASE | ||
#Lombok | ||
lombokVersion=1.18.8 | ||
#Junit5 | ||
junit5Version=5.4.2 | ||
#Pact | ||
pactJunit5Version=3.6.11 | ||
#RestAssured | ||
restAssuredVersion=4.0.0 | ||
restAssuredVersion=2.9.0 | ||
#Embedded Mongo | ||
mongoVersion=4.12.2 | ||
#HttpClient | ||
httpClientVersion=4.5.9 | ||
#Gson | ||
gsonVersion=2.8.5 | ||
#Java | ||
javaVersion=1.8 | ||
javaXmlVersion=2.3.0 | ||
#Application | ||
releaseVersion=1.0.1 | ||
#Encoding | ||
charset=UTF-8 | ||
#Mockito | ||
mockitoJunit5Version=3.0.0 | ||
#Json | ||
jsonSmartVersion=2.3 | ||
#Rest Client Drive | ||
restClientDriverVersion=2.0.0 |
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
7 changes: 3 additions & 4 deletions
7
license-service/src/main/java/com/gov/zw/client/dto/IdentityReference.java
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
2 changes: 0 additions & 2 deletions
2
...ice/src/main/java/com/gov/zw/client/exception/IdentityReferenceJsonNotValidException.java
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
130 changes: 130 additions & 0 deletions
130
license-service/src/main/java/com/gov/zw/domain/License.java
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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
package com.gov.zw.domain; | ||
|
||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.mongodb.core.mapping.Document; | ||
|
||
import java.util.Objects; | ||
|
||
@Document(collection = "Licenses") | ||
public class License { | ||
|
||
@Id | ||
private String id; | ||
private String identityRef; | ||
private String surname; | ||
private String firstNames; | ||
private String dateOfBirth; | ||
private String country; | ||
private String dateOfIssue; | ||
private String expiryDate; | ||
private String agency; | ||
private String licenseNumber; | ||
private String signatureImage; | ||
private String address; | ||
|
||
public License() {} | ||
|
||
public License(String id, String identityRef, String surname, String firstNames, String dateOfBirth, String country, | ||
String dateOfIssue, String expiryDate, String agency, String licenseNumber, | ||
String signatureImage, String address) { | ||
this.id = id; | ||
this.identityRef = identityRef; | ||
this.surname = surname; | ||
this.firstNames = firstNames; | ||
this.dateOfBirth = dateOfBirth; | ||
this.country = country; | ||
this.dateOfIssue = dateOfIssue; | ||
this.expiryDate = expiryDate; | ||
this.agency = agency; | ||
this.licenseNumber = licenseNumber; | ||
this.signatureImage = signatureImage; | ||
this.address = address; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getIdentityRef() { | ||
return identityRef; | ||
} | ||
|
||
public void setIdentityRef(String identityRef) { | ||
this.identityRef = identityRef; | ||
} | ||
|
||
public String getSurname() { | ||
return surname; | ||
} | ||
|
||
public String getFirstNames() { | ||
return firstNames; | ||
} | ||
|
||
public String getDateOfBirth() { | ||
return dateOfBirth; | ||
} | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
public String getDateOfIssue() { | ||
return dateOfIssue; | ||
} | ||
|
||
public String getExpiryDate() { | ||
return expiryDate; | ||
} | ||
|
||
public String getAgency() { | ||
return agency; | ||
} | ||
|
||
public String getLicenseNumber() { | ||
return licenseNumber; | ||
} | ||
|
||
public String getSignatureImage() { | ||
return signatureImage; | ||
} | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
License license = (License) o; | ||
return Objects.equals(id, license.id) && Objects.equals(identityRef, license.identityRef) && Objects.equals(surname, license.surname) && Objects.equals(firstNames, license.firstNames) && Objects.equals(dateOfBirth, license.dateOfBirth) && Objects.equals(country, license.country) && Objects.equals(dateOfIssue, license.dateOfIssue) && Objects.equals(expiryDate, license.expiryDate) && Objects.equals(agency, license.agency) && Objects.equals(licenseNumber, license.licenseNumber) && Objects.equals(signatureImage, license.signatureImage) && Objects.equals(address, license.address); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, identityRef, surname, firstNames, dateOfBirth, country, dateOfIssue, expiryDate, agency, licenseNumber, signatureImage, address); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "License{" + | ||
"id='" + id + '\'' + | ||
", identityRef='" + identityRef + '\'' + | ||
", surname='" + surname + '\'' + | ||
", firstNames='" + firstNames + '\'' + | ||
", dateOfBirth='" + dateOfBirth + '\'' + | ||
", country='" + country + '\'' + | ||
", dateOfIssue='" + dateOfIssue + '\'' + | ||
", expiryDate='" + expiryDate + '\'' + | ||
", agency='" + agency + '\'' + | ||
", licenseNumber='" + licenseNumber + '\'' + | ||
", signatureImage='" + signatureImage + '\'' + | ||
", address='" + address + '\'' + | ||
'}'; | ||
} | ||
} |
Oops, something went wrong.