1 20 21 22 26 package org.apache.ojb.odmg.shared; 27 28 import java.util.Collection ; 29 import java.io.Serializable ; 30 31 public class Member implements Serializable 32 { 33 34 private int id; 35 private String firstname; 36 private String lastname; 37 private Collection projects; 38 private Collection roles; 39 40 public Member() 41 { 42 } 43 44 public Member(int pId, String pFirstname, String pLastname) 45 { 46 id = pId; 47 firstname = pFirstname; 48 lastname = pLastname; 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 getFirstname() 72 { 73 return firstname; 74 } 75 76 public void setFirstname(String firstname) 77 { 78 this.firstname = firstname; 79 } 80 81 public String getLastname() 82 { 83 return lastname; 84 } 85 86 public void setLastname(String lastname) 87 { 88 this.lastname = lastname; 89 } 90 91 public Collection getProjects() 92 { 93 return projects; 94 } 95 96 public void setProjects(Collection projects) 97 { 98 this.projects = projects; 99 } 100 101 public String toString() 102 { 103 String result = firstname; 104 return result; 105 } 106 107 } 108 | Popular Tags |