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_Writer implements Serializable {
27 private static final long serialVersionUID = 1L;
28 int videoId;
29 int writerId;
30
31
32
33
34 @Override
35 public boolean equals(Object obj) {
36 return(videoId == ((Video_Writer)obj).videoId && writerId == ((Video_Writer)obj).writerId);
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, writerId);
47 return(result);
48 }
49
50
51
52 public int getVideoId() {
53 return videoId;
54 }
55
56
57
58 public void setVideoId(int videoId) {
59 this.videoId = videoId;
60 }
61
62
63
64 public int getWriterId() {
65 return writerId;
66 }
67
68
69
70 public void setWriterId(int writerId) {
71 this.writerId = writerId;
72 }
73
74 }