org.hibernate.test.annotations.idclass.xml
Class HabitatSpeciesLink.HabitatSpeciesLinkId
java.lang.Object
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
HabitatSpeciesLink.HabitatSpeciesLinkId
public HabitatSpeciesLink.HabitatSpeciesLinkId()
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.