org.hibernate.test.annotations.onetomany
Class Soldier

java.lang.Object
  extended by org.hibernate.test.annotations.onetomany.Soldier

@Entity
public class Soldier
extends Object


Constructor Summary
Soldier()
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getId()
           
 String getName()
           
 Troop getTroop()
           
 int hashCode()
           
 void setId(Integer id)
           
 void setName(String name)
           
 void setTroop(Troop troop)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Soldier

public Soldier()
Method Detail

getId

public Integer getId()

setId

public void setId(Integer id)

getName

public String getName()

setName

public void setName(String name)

getTroop

public Troop getTroop()

setTroop

public void setTroop(Troop troop)

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.