//このクラスは仮です package hibernateTest.entities; import java.util.ArrayList; public class Group { private Long gId; private String uri, name; //private ArrayList<User> members; private ArrayList<Request> requests; public Group(){ } public Group(String gId, String uri, String name, String uId){ this.gId = Long.parseLong(gId); this.uri = uri; this.name = name; } public Long getgId() { return gId; } private void setgId(Long gId) { this.gId = gId; } public String getUri() { return uri; } private void setUri(String uri){ this.uri = uri; } public String getUriByGid(String gId){ return uri; } private void setName(String name){ this.name = name; } public String getName(){ return name; } public String getNameByGid(String gId){ return name; } /*メンバー*/ //public ArrayList<User> getMembersList(){ // return null; //} //public void addMemberByUid(String uId){ // // members.add(user); //} //public DeleteResult deleteMember(String uid){ // members.remove(members.indexOf(uid)); // return null; //} /*リクエスト*/ }