/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/db/StudentAttendance.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-18 12:02:27 UTC
  • mto: (15.1.9 magstudentportal-more-db)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: gustav.hartvigsson@gmail.com-20170818120227-l7ltgppcssfk3y5e
* tabs -> 2 spaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
import java.io.Serializable;
4
4
import javax.persistence.*;
5
5
 
6
 
 
7
6
/**
8
7
 * The persistent class for the student_attendance database table.
9
8
 * 
10
9
 */
11
10
@Entity
12
 
@Table(name="student_attendance")
13
 
@NamedQuery(name="StudentAttendance.findAll", query="SELECT s FROM StudentAttendance s")
 
11
@Table(name = "student_attendance")
 
12
@NamedQuery(name = "StudentAttendance.findAll", query = "SELECT s FROM StudentAttendance s")
14
13
public class StudentAttendance implements Serializable {
15
 
        private static final long serialVersionUID = 1L;
16
 
        private StudentAttendancePK id;
17
 
        private Integer lateTime;
18
 
        private Lecture lecture;
19
 
        private Student studentBean;
20
 
 
21
 
        public StudentAttendance() {
22
 
        }
23
 
 
24
 
 
25
 
        @EmbeddedId
26
 
        public StudentAttendancePK getId() {
27
 
                return this.id;
28
 
        }
29
 
 
30
 
        public void setId(StudentAttendancePK id) {
31
 
                this.id = id;
32
 
        }
33
 
 
34
 
 
35
 
        @Column(name="late_time")
36
 
        public Integer getLateTime() {
37
 
                return this.lateTime;
38
 
        }
39
 
 
40
 
        public void setLateTime(Integer lateTime) {
41
 
                this.lateTime = lateTime;
42
 
        }
43
 
 
44
 
 
45
 
        //bi-directional many-to-one association to Lecture
46
 
        @ManyToOne
47
 
        @JoinColumns({
48
 
                @JoinColumn(name="lecture_course", referencedColumnName="course", nullable=false, insertable=false, updatable=false),
49
 
                @JoinColumn(name="lecture_end_time", referencedColumnName="end_time", nullable=false, insertable=false, updatable=false),
50
 
                @JoinColumn(name="lecture_start_time", referencedColumnName="start_time", nullable=false, insertable=false, updatable=false)
51
 
                })
52
 
        public Lecture getLecture() {
53
 
                return this.lecture;
54
 
        }
55
 
 
56
 
        public void setLecture(Lecture lecture) {
57
 
                this.lecture = lecture;
58
 
        }
59
 
 
60
 
 
61
 
        //bi-directional many-to-one association to Student
62
 
        @ManyToOne
63
 
        @JoinColumn(name="student", nullable=false, insertable=false, updatable=false)
64
 
        public Student getStudentBean() {
65
 
                return this.studentBean;
66
 
        }
67
 
 
68
 
        public void setStudentBean(Student studentBean) {
69
 
                this.studentBean = studentBean;
70
 
        }
 
14
  private static final long serialVersionUID = 1L;
 
15
  private StudentAttendancePK id;
 
16
  private Integer lateTime;
 
17
  private Lecture lecture;
 
18
  private Student studentBean;
 
19
 
 
20
  public StudentAttendance() {
 
21
  }
 
22
 
 
23
  @EmbeddedId
 
24
  public StudentAttendancePK getId() {
 
25
    return this.id;
 
26
  }
 
27
 
 
28
  public void setId(StudentAttendancePK id) {
 
29
    this.id = id;
 
30
  }
 
31
 
 
32
  @Column(name = "late_time")
 
33
  public Integer getLateTime() {
 
34
    return this.lateTime;
 
35
  }
 
36
 
 
37
  public void setLateTime(Integer lateTime) {
 
38
    this.lateTime = lateTime;
 
39
  }
 
40
 
 
41
  // bi-directional many-to-one association to Lecture
 
42
  @ManyToOne
 
43
  @JoinColumns({
 
44
      @JoinColumn(name = "lecture_course", referencedColumnName = "course", nullable = false, insertable = false, updatable = false),
 
45
      @JoinColumn(name = "lecture_end_time", referencedColumnName = "end_time", nullable = false, insertable = false, updatable = false),
 
46
      @JoinColumn(name = "lecture_start_time", referencedColumnName = "start_time", nullable = false, insertable = false, updatable = false) })
 
47
  public Lecture getLecture() {
 
48
    return this.lecture;
 
49
  }
 
50
 
 
51
  public void setLecture(Lecture lecture) {
 
52
    this.lecture = lecture;
 
53
  }
 
54
 
 
55
  // bi-directional many-to-one association to Student
 
56
  @ManyToOne
 
57
  @JoinColumn(name = "student", nullable = false, insertable = false, updatable = false)
 
58
  public Student getStudentBean() {
 
59
    return this.studentBean;
 
60
  }
 
61
 
 
62
  public void setStudentBean(Student studentBean) {
 
63
    this.studentBean = studentBean;
 
64
  }
71
65
 
72
66
}
 
 
b'\\ No newline at end of file'