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_Actor implements Serializable {
27 private static final long serialVersionUID = 1L;
28 int videoId;
29 int actorId;
30
31
32
33
34
35 @Override
36 public boolean equals(Object obj) {
37 return(videoId == ((Video_Actor)obj).videoId && actorId == ((Video_Actor)obj).actorId);
38 }
39
40
41
42
43 @Override
44 public int hashCode() {
45 int result = HashCodeUtil.SEED;
46 result = HashCodeUtil.hash(result, videoId);
47 result = HashCodeUtil.hash(result, actorId);
48 return(result);
49 }
50
51
52
53
54 public int getVideoId() {
55 return videoId;
56 }
57
58
59
60 public void setVideoId(int videoId) {
61 this.videoId = videoId;
62 }
63
64
65
66 public int getActorId() {
67 return actorId;
68 }
69
70
71
72 public void setActorId(int actorId) {
73 this.actorId = actorId;
74 }
75
76
77 }