/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk
18 by Gustav Hartvigsson
* Added vim modelines
1
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
2
 * vi: set shiftwidth=2 tabstop=2 expandtab:
3
 * :indentSize=2:tabSize=2:noTabs=true:
4
 */
5
27 by Gustav Hartvigsson
* changed DB -> db
6
package db;
15.1.3 by Gustav Hartvigsson
Generated classes from tables and added them.
7
8
import java.io.Serializable;
9
import javax.persistence.*;
10
11
/**
12
 * The persistent class for the student_attendance database table.
13
 * 
14
 */
15
@Entity
15.1.6 by Gustav Hartvigsson
* tabs -> 2 spaces
16
@Table(name = "student_attendance")
17
@NamedQuery(name = "StudentAttendance.findAll", query = "SELECT s FROM StudentAttendance s")
15.1.3 by Gustav Hartvigsson
Generated classes from tables and added them.
18
public class StudentAttendance implements Serializable {
15.1.6 by Gustav Hartvigsson
* tabs -> 2 spaces
19
  private static final long serialVersionUID = 1L;
20
  private StudentAttendancePK id;
21
  private Integer lateTime;
22
  private Lecture lecture;
23
  private Student studentBean;
24
25
  public StudentAttendance() {
26
  }
27
28
  @EmbeddedId
29
  public StudentAttendancePK getId() {
30
    return this.id;
31
  }
32
33
  public void setId(StudentAttendancePK id) {
34
    this.id = id;
35
  }
36
37
  @Column(name = "late_time")
38
  public Integer getLateTime() {
39
    return this.lateTime;
40
  }
41
42
  public void setLateTime(Integer lateTime) {
43
    this.lateTime = lateTime;
44
  }
45
46
  // bi-directional many-to-one association to Lecture
47
  @ManyToOne
48
  @JoinColumns({
49
      @JoinColumn(name = "lecture_course", referencedColumnName = "course", nullable = false, insertable = false, updatable = false),
50
      @JoinColumn(name = "lecture_end_time", referencedColumnName = "end_time", nullable = false, insertable = false, updatable = false),
51
      @JoinColumn(name = "lecture_start_time", referencedColumnName = "start_time", nullable = false, insertable = false, updatable = false) })
52
  public Lecture getLecture() {
53
    return this.lecture;
54
  }
55
56
  public void setLecture(Lecture lecture) {
57
    this.lecture = lecture;
58
  }
59
60
  // bi-directional many-to-one association to Student
61
  @ManyToOne
62
  @JoinColumn(name = "student", nullable = false, insertable = false, updatable = false)
63
  public Student getStudentBean() {
64
    return this.studentBean;
65
  }
66
67
  public void setStudentBean(Student studentBean) {
68
    this.studentBean = studentBean;
69
  }
15.1.3 by Gustav Hartvigsson
Generated classes from tables and added them.
70
27 by Gustav Hartvigsson
* changed DB -> db
71
}