1 20 21 22 26 package org.apache.ojb.broker; 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 person_id; 36 private int project_id; 37 private Person person; 38 private Project project; 39 private String roleName; 40 private Collection tasks; 41 42 public Role() 43 { 44 } 45 46 public Role(int pPersonId, int pProjectId, String pRolename) 47 { 48 person_id = pPersonId; 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 getPerson_id() 65 { 66 return person_id; 67 } 68 69 public void setPerson_id(int person_id) 70 { 71 this.person_id = person_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 Person getPerson() 85 { 86 return person; 87 } 88 89 public void setPerson(Person person) 90 { 91 this.person = person; 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("personId", person_id). 119 append("person", person). 120 append("projectId", project_id). 121 append("project", project). 122 append("tasks", tasks); 123 return buf.toString(); 124 } 125 } 126 | Popular Tags |