@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 person@Generated(value="lombok") public Person()
public void setSupervisor(Person supervisor)
Person.
Removes this person from the subordinates of the previous supervisor.supervisor - the new supervisor@Generated(value="lombok") public Long getId()
@Generated(value="lombok") public String getFirstName()
@Generated(value="lombok") public String getLastName()
@Generated(value="lombok") public Organisation getOrganisation()
@Generated(value="lombok") public Collection<Organisation> getPreviousOrganisations()
@Generated(value="lombok") public Person getSupervisor()
@Generated(value="lombok") public Collection<Person> getSubordinates()
@Generated(value="lombok") public Date getEntryDate()
@Generated(value="lombok") public boolean isActive()
@Generated(value="lombok") public void setId(Long id)
@Generated(value="lombok") public void setFirstName(String firstName)
@Generated(value="lombok") public void setLastName(String lastName)
@Generated(value="lombok") public void setOrganisation(Organisation organisation)
@Generated(value="lombok") public void setEntryDate(Date entryDate)
@Generated(value="lombok") public void setActive(boolean active)
Copyright © 2020 fastnate.org. All rights reserved.