@Entity @Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2010-07-17", reason="Initial review") public class Car extends AbstractEntityIdentifiedByObjectId
| Constructor and Description |
|---|
Car()
Default constructor as required by the JPA specs for unenhanced classes.
|
Car(String name,
String licensePlateNumber)
Constructs this Car from all the mandatory fields.
|
| Modifier and Type | Method and Description |
|---|---|
CarDetail |
getCarDetail()
Gets the details of this Car.
|
String |
getLicensePlateNumber()
Gets the license plate number of this Car.
|
String |
getName()
Gets the name of this Car.
|
void |
setCarDetail(CarDetail carDetail)
Sets the details for this Car.
|
void |
setLicensePlateNumber(String licensePlateNumber)
Sets the license plate number for this Car.
|
void |
setName(String name)
Sets the name for this Car.
|
String |
toString()
Creates a String representation of this Car.
|
getObjectId, getPrimaryKey, setObjectIdequals, getVersion, hashCode, setVersionpublic Car()
public String getName()
public void setName(String name)
name - The name for this Car.public String getLicensePlateNumber()
public void setLicensePlateNumber(String licensePlateNumber)
licensePlateNumber - The license plate number for this Car.public CarDetail getCarDetail()
public void setCarDetail(CarDetail carDetail)
carDetail - The details for this Car.public String toString()
toString in class AbstractEntityIdentifiedByObjectIdCarDetail information.Copyright © 2008–2018. All rights reserved.