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 e5ecd27..524fa87 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Group.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Group.java @@ -6,6 +6,7 @@ import static com.example.cosmos_serversb.models.Users.*; public class Group { + private Long id; private String gId, uri, name; private ArrayList members; private ArrayList requests; @@ -15,13 +16,24 @@ } public Group(String gId, String uri, String name, String uId){ - setGid(gId); + this.gId = gId; + //setGid(gId); setUri(uri); setName(name); this.members.add(getUserById(uId)); this.requests = null; } + //hibernate用 + public Long getId() { + return id; + } + + private void setId(Long id) { + this.id = id; + } + + private void setGid(String gId){ this.gId = gId; }