1
2
3
4
5
6 package net.sf.mindoro.model;
7
8 import java.util.Set;
9
10 /***
11 * A Developer (Role)
12 *
13 * @author aisrael
14 * @hibernate.class table="developer"
15 */
16 public class Developer {
17
18 private Long id;
19
20 private Person person;
21
22 private Set tasks;
23
24 /***
25 * @return Returns the id.
26 * @hibernate.id generator-class="foreign"
27 * @hibernate.generator-param name="property" value="person"
28 */
29 public final Long getId() {
30 return this.id;
31 }
32
33 /***
34 * @param id
35 * The id to set.
36 */
37 public final void setId(final Long id) {
38 this.id = id;
39 }
40
41 /***
42 * @return Returns the person.
43 * @hibernate.one-to-one class="net.sf.mindoro.model.Person"
44 * constrained="true"
45 */
46 public final Person getPerson() {
47 return this.person;
48 }
49
50 /***
51 * @param person
52 * The person to set.
53 */
54 public final void setPerson(final Person person) {
55 this.person = person;
56 }
57
58 /***
59 * @return Returns the tasks.
60 * @hibernate.collection-one-to-many class="net.sf.mindoro.model.Task"
61 */
62 public final Set getTasks() {
63 return this.tasks;
64 }
65
66 /***
67 * @param tasks
68 * The tasks to set.
69 */
70 public final void setTasks(final Set tasks) {
71 this.tasks = tasks;
72 }
73 }