Coverage Report - org.kuali.rice.kew.removereplace.RuleTargetId
 
Classes in this File Line Coverage Branch Coverage Complexity
RuleTargetId
0%
0/26
0%
0/22
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 RuleTargetId implements Serializable {
 29  
 
 30  
     @Column(name="DOC_HDR_ID")
 31  
     private Long documentId;
 32  
     @Column(name="RULE_ID")
 33  
     private Long ruleId;
 34  
 
 35  0
     public RuleTargetId() {}
 36  
 
 37  0
     public Long getDocumentId() { return documentId; }
 38  
 
 39  0
     public Long getRuleId() { return ruleId; }
 40  
 
 41  
         /**
 42  
          * @see java.lang.Object#hashCode()
 43  
          */
 44  
         @Override
 45  
         public int hashCode() {
 46  0
                 final int prime = 31;
 47  0
                 int result = 1;
 48  0
                 result = prime * result
 49  
                                 + ((this.documentId == null) ? 0 : this.documentId.hashCode());
 50  0
                 result = prime * result
 51  
                                 + ((this.ruleId == null) ? 0 : this.ruleId.hashCode());
 52  0
                 return result;
 53  
         }
 54  
 
 55  
         /**
 56  
          * @see java.lang.Object#equals(java.lang.Object)
 57  
          */
 58  
         @Override
 59  
         public boolean equals(Object obj) {
 60  0
                 if (this == obj)
 61  0
                         return true;
 62  0
                 if (obj == null)
 63  0
                         return false;
 64  0
                 if (getClass() != obj.getClass())
 65  0
                         return false;
 66  0
                 final RuleTargetId other = (RuleTargetId) obj;
 67  0
                 if (this.documentId == null) {
 68  0
                         if (other.documentId != null)
 69  0
                                 return false;
 70  0
                 } else if (!this.documentId.equals(other.documentId))
 71  0
                         return false;
 72  0
                 if (this.ruleId == null) {
 73  0
                         if (other.ruleId != null)
 74  0
                                 return false;
 75  0
                 } else if (!this.ruleId.equals(other.ruleId))
 76  0
                         return false;
 77  0
                 return true;
 78  
         }
 79  
 
 80  
     /* Replaced these with eclipse generated code above
 81  
   
 82  
     public boolean equals(Object o) {
 83  
         if (o == this) return true;
 84  
         if (!(o instanceof RuleTargetId)) return false;
 85  
         if (o == null) return false;
 86  
         RuleTargetId pk = (RuleTargetId) o;
 87  
         // TODO: Finish implementing this method.  Compare o to pk and return true or false.
 88  
         throw new UnsupportedOperationException("Please implement me!");
 89  
     }
 90  
 
 91  
     public int hashCode() {
 92  
         // TODO: Implement this method
 93  
         throw new UnsupportedOperationException("Please implement me!");
 94  
     }
 95  
         */
 96  
 }
 97