1
2
3
4
5
6 package fr.ifremer.quadrige3.core.dao.administration.strategy;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 import java.io.Serializable;
29 import org.apache.commons.lang3.builder.EqualsBuilder;
30 import org.apache.commons.lang3.builder.HashCodeBuilder;
31
32
33
34
35 public class PmfmAppliedStrategyPK implements Serializable, Comparable<PmfmAppliedStrategyPK>
36 {
37
38
39
40 private static final long serialVersionUID = -1991543001677708973L;
41
42 public PmfmAppliedStrategyPK()
43 {
44 }
45
46 public PmfmAppliedStrategyPK(PmfmStrategyImpl pmfmStrategy, AppliedStrategyImpl appliedStrategy)
47 {
48 this.pmfmStrategy = pmfmStrategy;
49 this.appliedStrategy = appliedStrategy;
50 }
51
52 private PmfmStrategyImpl pmfmStrategy;
53
54 public PmfmStrategyImpl getPmfmStrategy()
55 {
56 return this.pmfmStrategy;
57 }
58
59 public void setPmfmStrategy(PmfmStrategyImpl pmfmStrategy)
60 {
61 this.pmfmStrategy = pmfmStrategy;
62 }
63
64 private AppliedStrategyImpl appliedStrategy;
65
66 public AppliedStrategyImpl getAppliedStrategy()
67 {
68 return this.appliedStrategy;
69 }
70
71 public void setAppliedStrategy(AppliedStrategyImpl appliedStrategy)
72 {
73 this.appliedStrategy = appliedStrategy;
74 }
75
76 @Override
77 public boolean equals(Object object)
78 {
79 if (this == object)
80 {
81 return true;
82 }
83 if (!(object instanceof PmfmAppliedStrategyPK))
84 {
85 return false;
86 }
87 final PmfmAppliedStrategyPK that = (PmfmAppliedStrategyPK)object;
88 return new EqualsBuilder()
89 .append(this.getPmfmStrategy(),that.getPmfmStrategy())
90 .append(this.getAppliedStrategy(),that.getAppliedStrategy())
91 .isEquals();
92 }
93
94 @Override
95 public int hashCode()
96 {
97 return new HashCodeBuilder()
98 .append(getPmfmStrategy())
99 .append(getAppliedStrategy())
100 .toHashCode();
101 }
102
103
104
105
106 @Override
107 public int compareTo(PmfmAppliedStrategyPK o)
108 {
109 int cmp = 0;
110 return cmp;
111 }
112 }