org.hibernate.test.annotations.onetomany
Class Parent

java.lang.Object
  extended by org.hibernate.test.annotations.onetomany.Parent
All Implemented Interfaces:
Serializable

@Entity
public class Parent
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
 int age
           
 Set<Child> children
           
 ParentPk id
           
 
Constructor Summary
Parent()
           
 
Method Summary
 void addChild(Child child)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public ParentPk id

age

public int age

children

public Set<Child> children
Constructor Detail

Parent

public Parent()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

addChild

public void addChild(Child child)


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