org.hibernate.test.annotations.inheritance
Class Vegetable
java.lang.Object
org.hibernate.test.annotations.inheritance.Vegetable
- Direct Known Subclasses:
- Carrot, Tomato
@Entity
public class Vegetable
- extends Object
Vegetable
public Vegetable()
getId
public VegetablePk getId()
setId
public void setId(VegetablePk id)
getPriceInCent
public long getPriceInCent()
setPriceInCent
public void setPriceInCent(long priceInCent)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.