Coverage Report - org.kuali.rice.kew.doctype.ApplicationDocumentStatusId
 
Classes in this File Line Coverage Branch Coverage Complexity
ApplicationDocumentStatusId
0%
0/26
0%
0/22
4.6
 
 1  
 /*
 2  
  * Copyright 2007-2010 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.doctype;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 import javax.persistence.Column;
 21  
 
 22  
 /**
 23  
  */
 24  
 public class ApplicationDocumentStatusId implements Serializable {
 25  
 
 26  
     @Column(name="DOC_TYP_ID")
 27  
     private Long documentTypeId;
 28  
     @Column(name="DOC_STAT_NM")
 29  
     private String statusName;
 30  
 
 31  0
     public ApplicationDocumentStatusId() {}
 32  
 
 33  0
     public Long getDocumentTypeId() { return documentTypeId; }
 34  
 
 35  0
     public String getStatusName() { return statusName; }
 36  
 
 37  
         /**
 38  
          * This overridden method ...
 39  
          * 
 40  
          * @see java.lang.Object#hashCode()
 41  
          */
 42  
         @Override
 43  
         public int hashCode() {
 44  0
                 final int prime = 31;
 45  0
                 int result = 1;
 46  0
                 result = prime
 47  
                                 * result
 48  
                                 + ((this.documentTypeId == null) ? 0 : this.documentTypeId
 49  
                                                 .hashCode());
 50  0
                 result = prime * result
 51  
                                 + ((this.statusName == null) ? 0 : this.statusName.hashCode());
 52  0
                 return result;
 53  
         }
 54  
 
 55  
         /**
 56  
          * This overridden method ...
 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 ApplicationDocumentStatusId other = (ApplicationDocumentStatusId) obj;
 69  0
                 if (this.documentTypeId == null) {
 70  0
                         if (other.documentTypeId != null)
 71  0
                                 return false;
 72  0
                 } else if (!this.documentTypeId.equals(other.documentTypeId))
 73  0
                         return false;
 74  0
                 if (this.statusName == null) {
 75  0
                         if (other.statusName != null)
 76  0
                                 return false;
 77  0
                 } else if (!this.statusName.equals(other.statusName))
 78  0
                         return false;
 79  0
                 return true;
 80  
         }
 81  
 
 82  
 /*
 83  
     public boolean equals(Object o) {
 84  
         if (o == this) return true;
 85  
         if (!(o instanceof DocumentTypePolicyId)) return false;
 86  
         if (o == null) return false;
 87  
         DocumentTypePolicyId pk = (DocumentTypePolicyId) 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  
 }
 99