diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-04-04 20:56:36 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-04-04 20:56:36 -0400 |
commit | 03431245f71385c5d641f66a7f63c1a22ab65210 (patch) | |
tree | 6ec70c8aa127ad340c4feb52b343eebb57df27b2 /ufund-api | |
parent | feba88fed855d1694d292e401a4cb336e0ff9d69 (diff) | |
download | JellySolutions-03431245f71385c5d641f66a7f63c1a22ab65210.tar.gz JellySolutions-03431245f71385c5d641f66a7f63c1a22ab65210.tar.bz2 JellySolutions-03431245f71385c5d641f66a7f63c1a22ab65210.zip |
[backend] Add toString to need for debugging
Diffstat (limited to 'ufund-api')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java index 9b6170b..d3b3065 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/model/Need.java @@ -2,6 +2,8 @@ package com.ufund.api.ufundapi.model; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Arrays; + public class Need { public enum GoalType { @@ -129,4 +131,20 @@ public class Need { public void setID(int id){ this.id = id; } + + @Override + public String toString() { + return "Need{" + + "name='" + name + '\'' + + ", image='" + image + '\'' + + ", location='" + location + '\'' + + ", id=" + id + + ", filterAttributes=" + Arrays.toString(filterAttributes) + + ", type=" + type + + ", maxGoal=" + maxGoal + + ", urgent=" + urgent + + ", current=" + current + + ", description='" + description + '\'' + + '}'; + } }
\ No newline at end of file |