diff --git a/src/main/java/com/example/cosmos_serversb/entities/Group.java b/src/main/java/com/example/cosmos_serversb/entities/Group.java index 8d0bdfb..b1d1dcb 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Group.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Group.java @@ -4,7 +4,7 @@ import java.util.ArrayList; public class Group { - private Long gId; + private String gId; private String uri, name; private ArrayList members; private ArrayList requests; @@ -14,16 +14,16 @@ } public Group(String gId, String uri, String name, String uId){ - this.gId = Long.parseLong(gId); - this.uri = uri; - this.name = name; + setgId(gId); + setUri(uri); + setName(name); } - public Long getgId() { + public String getgId() { return gId; } - private void setgId(Long gId) { + private void setgId(String gId) { this.gId = gId; }