11
11
public class TeachPK implements Serializable {
12
//default serial version id, required for serializable classes.
13
private static final long serialVersionUID = 1L;
20
@Column(insertable=false, updatable=false, unique=true, nullable=false)
21
public Long getCourse() {
24
public void setCourse(Long course) {
28
@Column(insertable=false, updatable=false, unique=true, nullable=false)
29
public Long getStaff() {
32
public void setStaff(Long staff) {
36
public boolean equals(Object other) {
40
if (!(other instanceof TeachPK)) {
43
TeachPK castOther = (TeachPK)other;
45
this.course.equals(castOther.course)
46
&& this.staff.equals(castOther.staff);
49
public int hashCode() {
52
hash = hash * prime + this.course.hashCode();
53
hash = hash * prime + this.staff.hashCode();
12
// default serial version id, required for serializable classes.
13
private static final long serialVersionUID = 1L;
20
@Column(insertable = false, updatable = false, unique = true, nullable = false)
21
public Long getCourse() {
25
public void setCourse(Long course) {
29
@Column(insertable = false, updatable = false, unique = true, nullable = false)
30
public Long getStaff() {
34
public void setStaff(Long staff) {
38
public boolean equals(Object other) {
42
if (!(other instanceof TeachPK)) {
45
TeachPK castOther = (TeachPK) other;
46
return this.course.equals(castOther.course) && this.staff.equals(castOther.staff);
49
public int hashCode() {
52
hash = hash * prime + this.course.hashCode();
53
hash = hash * prime + this.staff.hashCode();
b'\\ No newline at end of file'