org.kuali.rice.krad.data.jpa
Class IdClassBase

java.lang.Object
  extended by org.kuali.rice.krad.data.jpa.IdClassBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ComponentId, CountyId, DocumentTypePolicyId, EntityTypeContactInfoBo.EntityTypeContactInfoBoId, ParameterId, PostalCodeId, SessionDocumentId, StateId, UserOptionsId

public abstract class IdClassBase
extends Object
implements Serializable

A base class for creating ID class implementations for JPA.

These ID classes are required to have proper equals and hashcode method implementations, so this base class provides reflection-based defaults for both of those as well as toString.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
IdClass, Serialized Form

Constructor Summary
IdClassBase()
           
 
Method Summary
 boolean equals(Object obj)
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdClassBase

public IdClassBase()
Method Detail

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.