Skip to content

Commit

Permalink
DB / JPA / Avoid trouble with jpa model gen (setter needs to be camel…
Browse files Browse the repository at this point in the history
… case) #4274
  • Loading branch information
cmangeat authored and fxprunayre committed Dec 5, 2019
1 parent c6cf198 commit 046b912
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,25 @@ private void createLinkStatus() {
.setFailing(false)
.setStatusValue("200")
.setStatusInfo("OK")
.setcheckDate(yesterday);
.setCheckDate(yesterday);

koInTheMiddle = new LinkStatus()
.setFailing(true)
.setStatusValue("400")
.setStatusInfo("KO")
.setcheckDate(today);
.setCheckDate(today);

okAtTheEnd = new LinkStatus()
.setFailing(false)
.setStatusValue("200")
.setStatusInfo("OK")
.setcheckDate(tomorrow);
.setCheckDate(tomorrow);

statusKo = new LinkStatus()
.setFailing(true)
.setStatusValue("400")
.setStatusInfo("KO")
.setcheckDate(today);
.setCheckDate(today);


}
Expand Down
5 changes: 3 additions & 2 deletions domain/src/main/java/org/fao/geonet/domain/LinkStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,17 @@ public LinkStatus setStatusInfo(String statusInfo) {
*
* @return The moment that the check completed.
*/

@AttributeOverride(name = "dateAndTime",
column = @Column(name = "checkDate", length = 30))
public ISODate getcheckDate() {
public ISODate getCheckDate() {
return checkDate;
}

/**
* @return this entity object
*/
public LinkStatus setcheckDate(ISODate checkDate) {
public LinkStatus setCheckDate(ISODate checkDate) {
this.checkDate = checkDate;
return this;

Expand Down

0 comments on commit 046b912

Please sign in to comment.