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