1 20 21 22 26 package org.apache.ojb.broker; 27 28 import java.util.Collection ; 29 import java.io.Serializable ; 30 31 public class Project implements Serializable 32 { 33 private int id; 34 private String title; 35 private String description; 36 private Collection persons; 37 private Collection roles; 38 39 40 public Project() 41 { 42 } 43 44 public Project(int pId, String pTitle, String pDescription) 45 { 46 id = pId; 47 title = pTitle; 48 description = pDescription; 49 } 50 51 public Collection getRoles() 52 { 53 return roles; 54 } 55 56 public void setRoles(Collection roles) 57 { 58 this.roles = roles; 59 } 60 61 public int getId() 62 { 63 return id; 64 } 65 66 public void setId(int id) 67 { 68 this.id = id; 69 } 70 71 public String getTitle() 72 { 73 return title; 74 } 75 76 public void setTitle(String title) 77 { 78 this.title = title; 79 } 80 81 public String getDescription() 82 { 83 return description; 84 } 85 86 public void setDescription(String description) 87 { 88 this.description = description; 89 } 90 91 public Collection getPersons() 92 { 93 return persons; 94 } 95 96 public void setPersons(Collection persons) 97 { 98 this.persons = persons; 99 } 100 101 102 public String toString() 103 { 104 String result = title; 105 result += " "; 106 result += persons; 107 108 return result; 109 } 110 } 111 | Popular Tags |