Coverage Report - org.kuali.rice.shareddata.impl.postalcode.PostalCodeId
 
Classes in this File Line Coverage Branch Coverage Complexity
PostalCodeId
0%
0/5
N/A
0
 
 1  
 package org.kuali.rice.shareddata.impl.postalcode
 2  
 
 3  
 /*
 4  
  * Copyright 2007 The Kuali Foundation
 5  
  *
 6  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  * http://www.opensource.org/licenses/ecl1.php
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  
  * See the License for the specific language governing permissions and
 16  
  * limitations under the License.
 17  
  */
 18  
 
 19  
 import javax.persistence.Column
 20  
 import javax.persistence.Id
 21  
 import org.apache.commons.lang.builder.EqualsBuilder
 22  
 import org.apache.commons.lang.builder.HashCodeBuilder
 23  
 import org.apache.commons.lang.builder.ToStringBuilder
 24  
 
 25  
 final class PostalCodeId {
 26  
 
 27  
     @Id
 28  
         @Column(name="POSTAL_CNTRY_CD")
 29  
     def final String countryCode;
 30  
 
 31  
     @Id
 32  
         @Column(name="POSTAL_CD")
 33  
     def final String code;
 34  
 
 35  
         PostalCodeId() { }
 36  
 
 37  
         PostalCodeId(String countryCode, String code) {
 38  0
                 this.countryCode = countryCode;
 39  0
                 this.code = code;
 40  
         }
 41  
 
 42  
     @Override
 43  
     int hashCode() {
 44  0
         return HashCodeBuilder.reflectionHashCode(this);
 45  
     }
 46  
 
 47  
     @Override
 48  
     boolean equals(Object obj) {
 49  0
         return EqualsBuilder.reflectionEquals(obj, this);
 50  
     }
 51  
 
 52  
     @Override
 53  
     String toString() {
 54  0
         return ToStringBuilder.reflectionToString(this);
 55  
     }
 56  
 }