/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package DB;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the student_attendance database table.
 * 
 */
@Entity
@Table(name="student_attendance")
@NamedQuery(name="StudentAttendance.findAll", query="SELECT s FROM StudentAttendance s")
public class StudentAttendance implements Serializable {
	private static final long serialVersionUID = 1L;
	private StudentAttendancePK id;
	private Integer lateTime;
	private Lecture lecture;
	private Student studentBean;

	public StudentAttendance() {
	}


	@EmbeddedId
	public StudentAttendancePK getId() {
		return this.id;
	}

	public void setId(StudentAttendancePK id) {
		this.id = id;
	}


	@Column(name="late_time")
	public Integer getLateTime() {
		return this.lateTime;
	}

	public void setLateTime(Integer lateTime) {
		this.lateTime = lateTime;
	}


	//bi-directional many-to-one association to Lecture
	@ManyToOne
	@JoinColumns({
		@JoinColumn(name="lecture_course", referencedColumnName="course", nullable=false, insertable=false, updatable=false),
		@JoinColumn(name="lecture_end_time", referencedColumnName="end_time", nullable=false, insertable=false, updatable=false),
		@JoinColumn(name="lecture_start_time", referencedColumnName="start_time", nullable=false, insertable=false, updatable=false)
		})
	public Lecture getLecture() {
		return this.lecture;
	}

	public void setLecture(Lecture lecture) {
		this.lecture = lecture;
	}


	//bi-directional many-to-one association to Student
	@ManyToOne
	@JoinColumn(name="student", nullable=false, insertable=false, updatable=false)
	public Student getStudentBean() {
		return this.studentBean;
	}

	public void setStudentBean(Student studentBean) {
		this.studentBean = studentBean;
	}

}