Package ejava.examples.orm.core.mapped
Class Car
- java.lang.Object
-
- ejava.examples.orm.core.mapped.Car
-
public class Car extends Object
This class provides an example of providing more explicit mappings between the entity class and the database using orm.xml.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetCost()longgetId()StringgetMake()StringgetModel()intgetYear()voidsetCost(BigDecimal cost)voidsetMake(String make)voidsetModel(String model)voidsetYear(int year)StringtoString()
-
-
-
Field Detail
-
id
private long id
-
make
private String make
-
model
private String model
-
year
private int year
-
cost
private BigDecimal cost
-
-
Method Detail
-
getId
public long getId()
-
getMake
public String getMake()
-
setMake
public void setMake(String make)
-
getModel
public String getModel()
-
setModel
public void setModel(String model)
-
getYear
public int getYear()
-
setYear
public void setYear(int year)
-
getCost
public BigDecimal getCost()
-
setCost
public void setCost(BigDecimal cost)
-
-