3
3
import java.io.Serializable;
4
4
import javax.persistence.*;
8
7
* The persistent class for the student_attendance database table.
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;
21
public StudentAttendance() {
26
public StudentAttendancePK getId() {
30
public void setId(StudentAttendancePK id) {
35
@Column(name="late_time")
36
public Integer getLateTime() {
40
public void setLateTime(Integer lateTime) {
41
this.lateTime = lateTime;
45
//bi-directional many-to-one association to Lecture
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)
52
public Lecture getLecture() {
56
public void setLecture(Lecture lecture) {
57
this.lecture = lecture;
61
//bi-directional many-to-one association to Student
63
@JoinColumn(name="student", nullable=false, insertable=false, updatable=false)
64
public Student getStudentBean() {
65
return this.studentBean;
68
public void setStudentBean(Student studentBean) {
69
this.studentBean = studentBean;
14
private static final long serialVersionUID = 1L;
15
private StudentAttendancePK id;
16
private Integer lateTime;
17
private Lecture lecture;
18
private Student studentBean;
20
public StudentAttendance() {
24
public StudentAttendancePK getId() {
28
public void setId(StudentAttendancePK id) {
32
@Column(name = "late_time")
33
public Integer getLateTime() {
37
public void setLateTime(Integer lateTime) {
38
this.lateTime = lateTime;
41
// bi-directional many-to-one association to Lecture
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() {
51
public void setLecture(Lecture lecture) {
52
this.lecture = lecture;
55
// bi-directional many-to-one association to Student
57
@JoinColumn(name = "student", nullable = false, insertable = false, updatable = false)
58
public Student getStudentBean() {
59
return this.studentBean;
62
public void setStudentBean(Student studentBean) {
63
this.studentBean = studentBean;
b'\\ No newline at end of file'