1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.buckosoft.BuckoVidLib.domain;
17
18 import java.io.Serializable;
19
20 import com.buckosoft.BuckoVidLib.util.HashCodeUtil;
21
22
23
24
25
26 public class Video_Director implements Serializable {
27 private static final long serialVersionUID = 1L;
28 int videoId;
29 int directorId;
30
31
32
33
34 @Override
35 public boolean equals(Object obj) {
36 return(videoId == ((Video_Director)obj).videoId && directorId == ((Video_Director)obj).directorId);
37 }
38
39
40
41
42 @Override
43 public int hashCode() {
44 int result = HashCodeUtil.SEED;
45 result = HashCodeUtil.hash(result, videoId);
46 result = HashCodeUtil.hash(result, directorId);
47 return(result);
48 }
49
50
51
52
53 public int getVideoId() {
54 return videoId;
55 }
56
57
58
59 public void setVideoId(int videoId) {
60 this.videoId = videoId;
61 }
62
63
64
65 public int getDirectorId() {
66 return directorId;
67 }
68
69
70
71 public void setDirectorId(int directorId) {
72 this.directorId = directorId;
73 }
74
75
76 }