diff --git a/src/test/java/hibernateTest/entities/Group.java b/src/test/java/hibernateTest/entities/Group.java index 6eacf5b..84006d1 100644 --- a/src/test/java/hibernateTest/entities/Group.java +++ b/src/test/java/hibernateTest/entities/Group.java @@ -2,12 +2,14 @@ package hibernateTest.entities; import java.util.ArrayList; +import java.util.Set; public class Group { private String gId; private String uri, name; //private ArrayList members; - private ArrayList requests; + //private ArrayList requests; + private Set requests; public Group(){ @@ -51,6 +53,18 @@ return name; } + public Set getRequests(){ + return requests; + } + + public void setRequests(Set requests){ + this.requests = requests; + } + + public void addRequests(Request request){ + requests.add(request); + } + /*メンバー*/ //public ArrayList getMembersList(){ // return null;