org.hibernate.test.annotations.inheritance
Class Vegetable

java.lang.Object
  extended by org.hibernate.test.annotations.inheritance.Vegetable
Direct Known Subclasses:
Carrot, Tomato

@Entity
public class Vegetable
extends Object


Constructor Summary
Vegetable()
           
 
Method Summary
 boolean equals(Object o)
           
 VegetablePk getId()
           
 long getPriceInCent()
           
 int hashCode()
           
 void setId(VegetablePk id)
           
 void setPriceInCent(long priceInCent)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vegetable

public Vegetable()
Method Detail

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.