@Entity @Status(stage=DEVELOPMENT, unitTests=ABSENT) public class NobelPrizeLaureate extends AbstractAuditTrailEntityIdentifiedByObjectId implements Serializable
| Constructor and Description |
|---|
NobelPrizeLaureate()
Default constructor as required by the JPA specs for unenhanced classes.
|
NobelPrizeLaureate(Scientist scientist,
NobelPrize nobelPrize)
Constructs this Element from all the supplied, mandatory fields.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the description.
|
Integer |
getFraction()
Gets the fraction of the NobelPrize awarded to the Scientist.
|
NobelPrize |
getNobelPrize()
Gets the NobelPrize.
|
Scientist |
getScientist()
Gets the Scientist.
|
void |
setDescription(String description)
Sets the description.
|
void |
setFraction(Integer fraction)
Sets the fraction of the NobelPrize awarded to the Scientist.
|
void |
setNobelPrize(NobelPrize nobelPrize)
Sets the NobelPrize.
|
void |
setScientist(Scientist scientist)
Sets the Scientist.
|
getAuditTrailData, setAuditTrailDatagetObjectId, getPrimaryKey, setObjectId, toStringequals, getVersion, hashCode, setVersionpublic NobelPrizeLaureate()
public NobelPrizeLaureate(Scientist scientist, NobelPrize nobelPrize)
scientist - The Scientist.nobelPrize - The NobelPrize.public Scientist getScientist()
public void setScientist(Scientist scientist)
scientist - The Scientist.public NobelPrize getNobelPrize()
public void setNobelPrize(NobelPrize nobelPrize)
nobelPrize - The NobelPrize.public String getDescription()
public void setDescription(String description)
description - The description.public Integer getFraction()
public void setFraction(Integer fraction)
fraction - The fraction of the NobelPrize awarded to the Scientist.Copyright © 2008–2018. All rights reserved.