1 20 21 22 26 package org.apache.ojb.odmg.shared; 27 28 import org.apache.commons.lang.builder.ToStringBuilder; 29 30 import java.util.Collection ; 31 import java.io.Serializable ; 32 33 public class Role implements Serializable 34 { 35 private int member_id; 36 private int project_id; 37 private Member member; 38 private Project project; 39 private String roleName; 40 private Collection tasks; 41 42 public Role() 43 { 44 } 45 46 public Role(int pMemberId, int pProjectId, String pRolename) 47 { 48 member_id = pMemberId; 49 project_id = pProjectId; 50 roleName = pRolename; 51 } 52 53 54 public String getRoleName() 55 { 56 return roleName; 57 } 58 59 public void setRoleName(String roleName) 60 { 61 this.roleName = roleName; 62 } 63 64 public int getMember_id() 65 { 66 return member_id; 67 } 68 69 public void setMember_id(int member_id) 70 { 71 this.member_id = member_id; 72 } 73 74 public int getProject_id() 75 { 76 return project_id; 77 } 78 79 public void setProject_id(int project_id) 80 { 81 this.project_id = project_id; 82 } 83 84 public Member getMember() 85 { 86 return member; 87 } 88 89 public void setMember(Member member) 90 { 91 this.member = member; 92 } 93 94 public Project getProject() 95 { 96 return project; 97 } 98 99 public void setProject(Project project) 100 { 101 this.project = project; 102 } 103 104 public Collection getTasks() 105 { 106 return tasks; 107 } 108 109 public void setTasks(Collection tasks) 110 { 111 this.tasks = tasks; 112 } 113 114 public String toString() 115 { 116 ToStringBuilder buf = new ToStringBuilder(this); 117 buf.append("roleName", roleName). 118 append("memberId", member_id). 119 append("member", member). 120 append("projectId", project_id). 121 append("project", project). 122 append("tasks", tasks); 123 return buf.toString(); 124 } 125 } 126 | Popular Tags |