e31c5fceceb7e325d190294e13074db8b70af316
[so.git] / mso-catalog-db / src / main / java / org / onap / so / db / catalog / beans / ActivitySpecActivitySpecCategoriesId.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 - 2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.db.catalog.beans;
22
23 import java.io.Serializable;
24
25 import org.apache.commons.lang3.builder.EqualsBuilder;
26 import org.apache.commons.lang3.builder.HashCodeBuilder;
27 import org.apache.commons.lang3.builder.ToStringBuilder;
28
29 import com.openpojo.business.annotation.BusinessKey;
30
31 public class ActivitySpecActivitySpecCategoriesId implements Serializable {
32         
33         private static final long serialVersionUID = 1563771827209840959L;
34         private Integer ID;
35         @BusinessKey
36         private Integer activitySpecId;
37         @BusinessKey
38         private Integer activitySpecCategoriesId;
39         
40         public Integer getID() {
41                 return ID;
42         }
43         public void setID(Integer iD) {
44                 ID = iD;
45         }
46         public Integer getActivitySpecCategoriesId() {
47                 return activitySpecCategoriesId;
48         }
49         public void setActivitySpecCategoriesId(Integer activitySpecCategoriesId) {
50                 this.activitySpecCategoriesId = activitySpecCategoriesId;
51         }
52         public Integer getActivitySpecId() {
53                 return activitySpecId;
54         }
55         public void setActivitySpecId(Integer activitySpecId) {
56                 this.activitySpecId = activitySpecId;
57         }
58
59         @Override
60         public String toString() {
61                 return new ToStringBuilder(this).append("activitySpecId", activitySpecId)
62                                 .append("activitySpecCategoriesId", activitySpecCategoriesId)
63                                 .toString();
64         }
65
66         @Override
67         public boolean equals(final Object other) {
68                 if (!(other instanceof ActivitySpecActivitySpecCategoriesId)) {
69                         return false;
70                 }
71                 ActivitySpecActivitySpecCategoriesId castOther = (ActivitySpecActivitySpecCategoriesId) other;
72                 return new EqualsBuilder().append(activitySpecId, castOther.activitySpecId)
73                                 .append(activitySpecCategoriesId, castOther.activitySpecCategoriesId).isEquals();
74         }
75
76         @Override
77         public int hashCode() {
78                 return new HashCodeBuilder().append(activitySpecId).append(activitySpecCategoriesId).toHashCode();
79         }
80 }