RmiClient  1.0
 Alle Klassen Namensbereiche Dateien Funktionen Variablen
Projekt.java
gehe zur Dokumentation dieser Datei
1 package databaseModel;
2 
3 import javax.persistence.*;
4 
9 @Entity
10 public class Projekt implements java.io.Serializable {
11  private static final long serialVersionUID = 1L;
12  private int id;
13  @Column(length = 300)
14  private String beschreibung;
15  @Column(length = 300)
16  private String kommentar;
17  @Column(length = 15)
18  private String status;
19  @Column(length = 30)
20  private String titel;
21  private Ansprechpartner ansprechpartnerBean;
22  private Student student1Bean;
23  private Student student2Bean;
24  private Student student3Bean;
25 
26  public Projekt() {
27  }
28 
29  @Id
30  @GeneratedValue(strategy = GenerationType.IDENTITY)
31  public int getId() {
32  return this.id;
33  }
34 
35  public void setId(int id) {
36  this.id = id;
37  }
38 
39  public String getBeschreibung() {
40  return this.beschreibung;
41  }
42 
43  public void setBeschreibung(String beschreibung) {
44  this.beschreibung = beschreibung;
45  }
46 
47  public String getKommentar() {
48  return this.kommentar;
49  }
50 
51  public void setKommentar(String kommentar) {
52  this.kommentar = kommentar;
53  }
54 
55  public String getStatus() {
56  return this.status;
57  }
58 
59  public void setStatus(String status) {
60  this.status = status;
61  }
62 
63  public String getTitel() {
64  return this.titel;
65  }
66 
67  public void setTitel(String titel) {
68  this.titel = titel;
69  }
70 
71  // bi-directional many-to-one association to Ansprechpartner
72  @ManyToOne
73  @JoinColumn(name = "ANSPRECHPARTNER")
75  return this.ansprechpartnerBean;
76  }
77 
78  public void setAnsprechpartnerBean(Ansprechpartner ansprechpartnerBean) {
79  this.ansprechpartnerBean = ansprechpartnerBean;
80  }
81 
82  // bi-directional many-to-one association to Student
83  @ManyToOne
84  @JoinColumn(name = "STUDENT1")
86  return this.student1Bean;
87  }
88 
89  public void setStudent1Bean(Student student1Bean) {
90  this.student1Bean = student1Bean;
91  }
92 
93  // bi-directional many-to-one association to Student
94  @ManyToOne
95  @JoinColumn(name = "STUDENT2")
97  return this.student2Bean;
98  }
99 
100  public void setStudent2Bean(Student student2Bean) {
101  this.student2Bean = student2Bean;
102  }
103 
104  // bi-directional many-to-one association to Student
105  @ManyToOne
106  @JoinColumn(name = "STUDENT3")
108  return this.student3Bean;
109  }
110 
111  public void setStudent3Bean(Student student3Bean) {
112  this.student3Bean = student3Bean;
113  }
114 
115 }