Modifier and Type | Field and Description |
---|---|
static String |
FIND_ALL
Specifies the
String that represents the NamedQuery to create a TypedQuery to get all
marriage records. |
Constructor and Description |
---|
Marriage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Person |
getHusband()
Returns the male person of the marriage.
|
Person |
getWife()
Returns the female person of the marriage.
|
int |
hashCode() |
void |
setHusband(Person husband)
Sets the male person of the marriage.
|
void |
setWife(Person wife)
Sets the female person of the marriage.
|
public static final String FIND_ALL
String
that represents the NamedQuery
to create a TypedQuery
to get all
marriage records. For example:
TypedQuery<Marriage> query = em.createNamedQuery(Marriage.FIND_ALL, Marriage.class);
public Person getHusband()
public void setHusband(Person husband)
husband
- the male person of the marriagepublic Person getWife()
public void setWife(Person wife)
wife
- the female person of the marriageCopyright © 2015 Joseph Hendrix