org.hibernate.ejb.test.emops
Class Pet

java.lang.Object
  extended by org.hibernate.ejb.test.emops.Pet
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Cat, Dog

@Entity
public class Pet
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Pet()
           
 
Method Summary
 int getId()
           
 String getName()
           
 double getWeight()
           
 void setId(int id)
           
 void setName(String name)
           
 void setWeight(double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pet

public Pet()
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()

setName

public void setName(String name)

getWeight

public double getWeight()

setWeight

public void setWeight(double weight)


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