Coverage Report - org.kuali.rice.kns.bo.AdHocRouteWorkgroupId
 
Classes in this File Line Coverage Branch Coverage Complexity
AdHocRouteWorkgroupId
0%
0/10
0%
0/18
2.833
 
 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.kns.bo;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 import javax.persistence.Column;
 21  
 import javax.persistence.Id;
 22  
 
 23  
 import org.apache.commons.lang.builder.HashCodeBuilder;
 24  
 
 25  
 /**
 26  
  * This Compound Primary Class has been generated by the rice ojb2jpa Groovy script.  Please
 27  
  * note that there are no setter methods, only getters.  This is done purposefully as cpk classes
 28  
  * can not change after they have been created.  Also note they require a public no-arg constructor.
 29  
  * TODO: Implement the equals() and hashCode() methods. 
 30  
  */
 31  
 public class AdHocRouteWorkgroupId implements Serializable {
 32  
 
 33  
     private static final long serialVersionUID = -3782889247235043846L;
 34  
     
 35  
         @Column(name="RECIP_TYP_CD")
 36  
     private Integer type;
 37  
     @Id
 38  
     @Column(name="ACTN_RQST_CD")
 39  
     private String actionRequested;
 40  
     @Id
 41  
     @Column(name="ACTN_RQST_RECIP_ID")
 42  
     private String id;
 43  
 
 44  0
     public AdHocRouteWorkgroupId() {}
 45  
 
 46  
     public Integer getType() {
 47  0
         return this.type;
 48  
     }
 49  
 
 50  
     public String getActionRequested() {
 51  0
         return this.actionRequested;
 52  
     }
 53  
 
 54  
     public String getId() {
 55  0
         return this.id;
 56  
     }
 57  
 
 58  
     public boolean equals(Object o) {
 59  0
         if (o == this) return true;
 60  0
         if (!(o instanceof AdHocRouteWorkgroupId)) return false;
 61  0
         if (o == null) return false;
 62  0
         AdHocRouteWorkgroupId pk = (AdHocRouteWorkgroupId) o;
 63  0
         return getType() != null && getActionRequested() != null && getId() != null && getType().equals(pk.getType()) && getActionRequested().equals(pk.getActionRequested()) && getId().equals(pk.getId());        
 64  
     }
 65  
 
 66  
     public int hashCode() {
 67  0
             return new HashCodeBuilder().append(type).append(actionRequested).append(id).toHashCode();
 68  
     }
 69  
 
 70  
 }
 71