1 package org.apache.ojb.broker; 2 3 7 public class PersonWithArray 8 { 9 10 private int id; 11 private String firstname; 12 private String lastname; 13 private ProjectWithArray[] projects; 14 15 public PersonWithArray() 16 { 17 } 18 19 public PersonWithArray(int pId, String pFirstname, String pLastname) 20 { 21 id = pId; 22 firstname = pFirstname; 23 lastname = pLastname; 24 } 25 26 public int getId() 27 { 28 return id; 29 } 30 31 public void setId(int id) 32 { 33 this.id = id; 34 } 35 36 public String getFirstname() 37 { 38 return firstname; 39 } 40 41 public void setFirstname(String firstname) 42 { 43 this.firstname = firstname; 44 } 45 46 public String getLastname() 47 { 48 return lastname; 49 } 50 51 public void setLastname(String lastname) 52 { 53 this.lastname = lastname; 54 } 55 56 public ProjectWithArray[] getProjects() 57 { 58 return projects; 59 } 60 61 public void setProjects(ProjectWithArray[] projects) 62 { 63 this.projects = projects; 64 } 65 66 public String toString() 67 { 68 String result = firstname; 69 return result; 70 } 71 } 72 | Popular Tags |