@Entity public class Person extends Object
PersonData and "src/manin/data" for more.| Constructor and Description |
|---|
Person() |
Person(String firstName,
String lastName)
Creates a new person with his / her first and last name.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getEntryDate() |
String |
getFirstName()
The first name of the person - required according to JPA annotation.
|
Long |
getId()
The ID of the person - automatically assigned.
|
String |
getLastName()
The last name of the person - required according to Beans Validation.
|
Organisation |
getOrganisation()
The associated organisation - as entity reference.
|
Collection<Organisation> |
getPreviousOrganisations()
The previous organisations of the person.
|
Collection<Person> |
getSubordinates()
All persons that have this person as supervisor.
|
Person |
getSupervisor()
The immediate superior of this person.
|
boolean |
isActive() |
void |
setActive(boolean active) |
void |
setEntryDate(Date entryDate) |
void |
setFirstName(String firstName)
The first name of the person - required according to JPA annotation.
|
void |
setId(Long id)
The ID of the person - automatically assigned.
|
void |
setLastName(String lastName)
The last name of the person - required according to Beans Validation.
|
void |
setOrganisation(Organisation organisation)
The associated organisation - as entity reference.
|
void |
setSupervisor(Person supervisor)
Sets the supervisor of this
Person. |
String |
toString() |
public Person(String firstName, String lastName)
firstName - the first name of the personlastName - the last name of the personpublic Person()
public void setSupervisor(Person supervisor)
Person.
Removes this person from the subordinates of the previous supervisor.supervisor - the new supervisorpublic Long getId()
public String getFirstName()
public String getLastName()
public Organisation getOrganisation()
public Collection<Organisation> getPreviousOrganisations()
public Person getSupervisor()
public Collection<Person> getSubordinates()
public Date getEntryDate()
public boolean isActive()
public void setId(Long id)
public void setFirstName(String firstName)
public void setLastName(String lastName)
public void setOrganisation(Organisation organisation)
public void setEntryDate(Date entryDate)
public void setActive(boolean active)
Copyright © 2026 fastnate.org. All rights reserved.