@Entity @Status(stage=DEVELOPMENT, unitTests=ABSENT) public class NobelPrize extends AbstractAuditTrailEntityIdentifiedByObjectId implements Serializable
| Constructor and Description |
|---|
NobelPrize()
Default constructor as required by the JPA specs for unenhanced classes.
|
NobelPrize(NobelPrizeCategory nobelPrizeCategory,
Integer year)
Constructs this NobelPrize from the supplied nobelPrizeCategory and year.
|
| Modifier and Type | Method and Description |
|---|---|
NobelPrizeCategory |
getNobelPrizeCategory()
Gets the NobelPrizeCategory of this NobelPrize.
|
Set<NobelPrizeLaureate> |
getNobelPrizeLaureates()
Gets all the NobelPrizeLaureates that have won this NobelPrize.
|
Integer |
getYear()
Gets the year this NobelPrize was awarded.
|
void |
setNobelPrizeCategory(NobelPrizeCategory nobelPrizeCategory)
Sets the NobelPrizeCategory for this NobelPrize.
|
void |
setNobelPrizeLaureates(Set<NobelPrizeLaureate> nobelPrizeLaureates)
Sets all the NobelPrizeLaureates that have won this NobelPrize.
|
void |
setYear(Integer year)
Sets the year this NobelPrize was awarded.
|
getAuditTrailData, setAuditTrailDatagetObjectId, getPrimaryKey, setObjectId, toStringequals, getVersion, hashCode, setVersionpublic NobelPrize()
public NobelPrize(NobelPrizeCategory nobelPrizeCategory, Integer year)
nobelPrizeCategory - The NobelPrizecategory this NobelPrize belongs
to.year - The year this NobelPrize has been awarded.public NobelPrizeCategory getNobelPrizeCategory()
public void setNobelPrizeCategory(NobelPrizeCategory nobelPrizeCategory)
nobelPrizeCategory - The NobelPrizeCategory for this NobelPrize.public Integer getYear()
public void setYear(Integer year)
year - The year this NobelPrize was awarded.public Set<NobelPrizeLaureate> getNobelPrizeLaureates()
public void setNobelPrizeLaureates(Set<NobelPrizeLaureate> nobelPrizeLaureates)
nobelPrizeLaureates - All the NobelPrizeLaureates that have won this
NobelPrize.Copyright © 2008–2018. All rights reserved.