Modifier and Type | Field and Description |
---|---|
static String |
FIND_ALL
Specifies the
String that represents the NamedQuery to create a TypedQuery to get all
single-person events. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Person |
getPerson()
Returns the person associated with this event.
|
String |
getType()
Returns the discriminator column value.
|
int |
hashCode() |
void |
setPerson(Person person)
Sets the person associated with this event.
|
public static final String FIND_ALL
String
that represents the NamedQuery
to create a TypedQuery
to get all
single-person events.
For example:
TypedQuery<SinglePersonEvent> query = em.createNamedQuery(SinglePersonEvent.FIND_ALL, SinglePersonEvent.class);
public Person getPerson()
public void setPerson(Person person)
person
- the person associated with this eventpublic String getType()
Copyright © 2015 Joseph Hendrix