3
import java.io.Serializable;
4
import javax.persistence.*;
8
* 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")
14
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;
b'\\ No newline at end of file'