Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
WorkgroupTargetId |
|
| 4.6;4.6 |
1 | /* | |
2 | * Copyright 2005-2008 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kew.removereplace; | |
17 | ||
18 | import java.io.Serializable; | |
19 | ||
20 | import javax.persistence.Column; | |
21 | ||
22 | /** | |
23 | * This Compound Primary Class has been generated by the rice ojb2jpa Groovy script. Please | |
24 | * note that there are no setter methods, only getters. This is done purposefully as cpk classes | |
25 | * can not change after they have been created. Also note they require a public no-arg constructor. | |
26 | * TODO: Implement the equals() and hashCode() methods. | |
27 | */ | |
28 | public class WorkgroupTargetId implements Serializable { | |
29 | ||
30 | @Column(name="DOC_HDR_ID") | |
31 | private Long documentId; | |
32 | @Column(name="GRP_ID") | |
33 | private Long workgroupId; | |
34 | ||
35 | 0 | public WorkgroupTargetId() {} |
36 | ||
37 | 0 | public Long getDocumentId() { return documentId; } |
38 | ||
39 | 0 | public Long getWorkgroupId() { return workgroupId; } |
40 | ||
41 | ||
42 | /** | |
43 | * @see java.lang.Object#hashCode() | |
44 | */ | |
45 | @Override | |
46 | public int hashCode() { | |
47 | 0 | final int prime = 31; |
48 | 0 | int result = 1; |
49 | 0 | result = prime * result |
50 | + ((this.documentId == null) ? 0 : this.documentId.hashCode()); | |
51 | 0 | result = prime |
52 | * result | |
53 | + ((this.workgroupId == null) ? 0 : this.workgroupId.hashCode()); | |
54 | 0 | return result; |
55 | } | |
56 | ||
57 | /** | |
58 | * @see java.lang.Object#equals(java.lang.Object) | |
59 | */ | |
60 | @Override | |
61 | public boolean equals(Object obj) { | |
62 | 0 | if (this == obj) |
63 | 0 | return true; |
64 | 0 | if (obj == null) |
65 | 0 | return false; |
66 | 0 | if (getClass() != obj.getClass()) |
67 | 0 | return false; |
68 | 0 | final WorkgroupTargetId other = (WorkgroupTargetId) obj; |
69 | 0 | if (this.documentId == null) { |
70 | 0 | if (other.documentId != null) |
71 | 0 | return false; |
72 | 0 | } else if (!this.documentId.equals(other.documentId)) |
73 | 0 | return false; |
74 | 0 | if (this.workgroupId == null) { |
75 | 0 | if (other.workgroupId != null) |
76 | 0 | return false; |
77 | 0 | } else if (!this.workgroupId.equals(other.workgroupId)) |
78 | 0 | return false; |
79 | 0 | return true; |
80 | } | |
81 | ||
82 | /* Replace these eclipse generated code above | |
83 | public boolean equals(Object o) { | |
84 | if (o == this) return true; | |
85 | if (!(o instanceof WorkgroupTargetId)) return false; | |
86 | if (o == null) return false; | |
87 | WorkgroupTargetId pk = (WorkgroupTargetId) o; | |
88 | // TODO: Finish implementing this method. Compare o to pk and return true or false. | |
89 | throw new UnsupportedOperationException("Please implement me!"); | |
90 | } | |
91 | ||
92 | public int hashCode() { | |
93 | // TODO: Implement this method | |
94 | throw new UnsupportedOperationException("Please implement me!"); | |
95 | } | |
96 | */ | |
97 | } | |
98 |