org.hibernate.engine
Class EntityKey
java.lang.Object
   org.hibernate.engine.EntityKey
org.hibernate.engine.EntityKey
- All Implemented Interfaces: 
- Serializable
- public final class EntityKey 
- extends Object- implements Serializable
Uniquely identifies of an entity instance in a particular session by identifier.
 
 Uniqueing information consists of the entity-name and the identifier value.
- Author:
- Gavin King
- See Also:
- EntityUniqueKey, 
Serialized Form
 
 
 
EntityKey
public EntityKey(Serializable id,
                 EntityPersister persister,
                 EntityMode entityMode)
- Construct a unique identifier for an entity class instance
 
isBatchLoadable
public boolean isBatchLoadable()
- 
 
- 
 
getIdentifier
public Serializable getIdentifier()
- Get the user-visible identifier
 
- 
 
- 
 
getEntityName
public String getEntityName()
- 
 
- 
 
equals
public boolean equals(Object other)
- 
- Overrides:
- equalsin class- Object
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.