Coverage Report - org.kuali.rice.kim.impl.identity.type.EntityTypeContactInfoId
 
Classes in this File Line Coverage Branch Coverage Complexity
EntityTypeContactInfoId
0%
0/7
N/A
0
 
 1  
 /**
 2  
  * Copyright 2005-2011 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.kim.impl.identity.type
 17  
 
 18  
 import javax.persistence.Id
 19  
 import javax.persistence.Column
 20  
 import org.apache.commons.lang.builder.HashCodeBuilder
 21  
 import org.apache.commons.lang.builder.EqualsBuilder
 22  
 import org.apache.commons.lang.builder.ToStringBuilder
 23  
 
 24  
 public class EntityTypeContactInfoId {
 25  
     @Id
 26  
         @Column(name = "ENT_TYP_CD")
 27  
     def final String entityTypeCode;
 28  
         @Id
 29  
         @Column(name = "ENTITY_ID")
 30  
         def final String entityId;
 31  
 
 32  
     /* this ctor should never be called.  It is only present for hibernate */
 33  
     private EntityTypeContactInfoId() {
 34  0
         entityTypeCode = null
 35  0
         entityId = null
 36  
     }
 37  
 
 38  
     public EntityTypeContactInfoId(String entityId, String entityTypeCode) {
 39  0
         this.entityId = entityId
 40  0
         this.entityTypeCode = entityTypeCode
 41  
     }
 42  
 
 43  
         @Override
 44  
         public int hashCode() {
 45  0
                 return HashCodeBuilder.reflectionHashCode(this);
 46  
         }
 47  
 
 48  
         @Override
 49  
         public boolean equals(Object obj) {
 50  0
                 return EqualsBuilder.reflectionEquals(obj, this);
 51  
         }
 52  
 
 53  
         @Override
 54  
         public String toString() {
 55  0
                 return ToStringBuilder.reflectionToString(this);
 56  
         }
 57  
 }