@Entity @Status(stage=DEVELOPMENT, unitTests=ABSENT) @Reviews(value=@Review(by="Kees Schotanus",at="2009-09-18",reason="Initial review")) public class Scientist extends AbstractAuditTrailEntityIdentifiedByObjectId implements Serializable
Constructor and Description |
---|
Scientist()
Default constructor as required by the JPA specs for unenhanced classes.
|
Scientist(String lastName,
String displayName,
Date birthDay)
Constructs this Scientist from all the supplied, mandatory fields.
|
Modifier and Type | Method and Description |
---|---|
Date |
getBirthDay()
Gets the birth day of this Scientist.
|
Date |
getDeathDay()
Gets the date of death of this Scientist.
|
String |
getDisplayName()
Gets the display name of this Scientist.
|
String |
getInfo()
Gets information about this Scientist.
|
String |
getLastName()
Gets the last name (sir name) of this Scientist.
|
Set<NobelPrizeLaureate> |
getNobelPrizeLaureates()
Gets the Nobel prizes won by this Scientist.
|
void |
setBirthDay(Date birthDay)
Sets the birth day for this Scientist.
|
void |
setDeathDay(Date deathDay)
Sets the date of death for this Scientist.
|
void |
setDisplayName(String displayName)
Sets the display name for this Scientist.
|
void |
setInfo(String info)
Sets information for this Scientist.
|
void |
setLastName(String lastName)
Sets the last name for this Scientist.
|
void |
setNobelPrizeLaureates(Set<NobelPrizeLaureate> nobelPrizeLaureates)
Sets the Nobel prizes won by this Scientist.
|
String |
toString()
Creates a String representation of this Scientist.
|
getAuditTrailData, setAuditTrailData
getObjectId, getPrimaryKey, setObjectId
equals, getVersion, hashCode, setVersion
public Scientist()
public Scientist(String lastName, String displayName, Date birthDay)
lastName
- The last name (sir name) of this Scientist.displayName
- The display name of this Scientist.birthDay
- The date of birth of this Scientist.IllegalArgumentException
- When either the supplied lastName or
displayName is null.NullPointerException
- When one of the supplied parameters is null.public String getLastName()
public void setLastName(String lastName)
lastName
- The last name for this Scientist.public String getDisplayName()
public void setDisplayName(String displayName)
displayName
- The display name for this Scientist.public Date getBirthDay()
public void setBirthDay(Date birthDay)
birthDay
- The birth day of this Scientist.public Date getDeathDay()
public void setDeathDay(Date deathDay)
deathDay
- The date of death of this Scientist.
public String getInfo()
public void setInfo(String info)
info
- Information for this Scientist.public Set<NobelPrizeLaureate> getNobelPrizeLaureates()
public void setNobelPrizeLaureates(Set<NobelPrizeLaureate> nobelPrizeLaureates)
nobelPrizeLaureates
- The Nobel prizes won by this Scientist.public String toString()
toString
in class AbstractEntityIdentifiedByObjectId
Copyright © 2008–2018. All rights reserved.