org.hibernate.test.annotations.onetomany
Class Trainer

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

@Entity
public class Trainer
extends Object

Unidirectional one to many sample


Constructor Summary
Trainer()
           
 
Method Summary
 Integer getId()
           
 String getName()
           
 Set<Monkey> getTrainedMonkeys()
           
 Set<Tiger> getTrainedTigers()
           
 void setId(Integer id)
           
 void setName(String name)
           
 void setTrainedMonkeys(Set<Monkey> trainedMonkeys)
           
 void setTrainedTigers(Set<Tiger> trainedTigers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trainer

public Trainer()
Method Detail

getId

public Integer getId()

setId

public void setId(Integer id)

getName

public String getName()

setName

public void setName(String name)

getTrainedTigers

public Set<Tiger> getTrainedTigers()

setTrainedTigers

public void setTrainedTigers(Set<Tiger> trainedTigers)

getTrainedMonkeys

public Set<Monkey> getTrainedMonkeys()

setTrainedMonkeys

public void setTrainedMonkeys(Set<Monkey> trainedMonkeys)


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