| java.lang.Object relations.Deity
Deity | public class Deity implements Serializable(Code) | | An entity that contains relations corresponding to family tree relations.
This entity demonstrates the following JPA features:
1. Enum fields (gender)
2. @OneToOne relations
3. @OneToMany relations
4. Named queries
|
Inner Class :public static enum Gender | |
Constructor Summary | |
public | Deity(String name, Gender gender) |
getGender | public Gender getGender()(Code) | | |
giveBirth | public Deity giveBirth(String childName, Deity childFather, Gender gender)(Code) | | She's having a baby...
Parameters: childName - the baby name the new child throws: IllegalArgumentException - if the person is not a woman, orif the person is unmarried (illegitimatechildren are not yet supported) |
setGender | public void setGender(Gender gender)(Code) | | |
|
|