org.hibernate.test.annotations.idclass.xml
Class HabitatSpeciesLink.HabitatSpeciesLinkId

java.lang.Object
  extended by org.hibernate.test.annotations.idclass.xml.HabitatSpeciesLink.HabitatSpeciesLinkId
All Implemented Interfaces:
Serializable
Enclosing class:
HabitatSpeciesLink

public static class HabitatSpeciesLink.HabitatSpeciesLinkId
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
HabitatSpeciesLink.HabitatSpeciesLinkId()
           
 
Method Summary
 boolean equals(Object other)
          Equality must be implemented in terms of identity field equality, and must use instanceof rather than comparing classes directly (some JPA implementations may subclass the identity class).
 Long getHabitatId()
           
 Long getSpeciesId()
           
 int hashCode()
          Hashcode must also depend on identity values.
 void setHabitatId(Long newHabitatId)
           
 void setSpeciesId(Long newSpeciesId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HabitatSpeciesLink.HabitatSpeciesLinkId

public HabitatSpeciesLink.HabitatSpeciesLinkId()
Method Detail

getHabitatId

public Long getHabitatId()

setHabitatId

public void setHabitatId(Long newHabitatId)

getSpeciesId

public Long getSpeciesId()

setSpeciesId

public void setSpeciesId(Long newSpeciesId)

equals

public boolean equals(Object other)
Equality must be implemented in terms of identity field equality, and must use instanceof rather than comparing classes directly (some JPA implementations may subclass the identity class).

Overrides:
equals in class Object

hashCode

public int hashCode()
Hashcode must also depend on identity values.

Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.