Package myorg.entityex
Class Auto
- java.lang.Object
-
- myorg.entityex.Auto
-
- All Implemented Interfaces:
Serializable
@Entity public class Auto extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Auto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColor()
long
getId()
String
getMake()
int
getMileage()
String
getModel()
void
setColor(String color)
private void
setId(long id)
void
setMake(String make)
void
setMileage(int mileage)
void
setModel(String model)
String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private long id
-
make
private String make
-
model
private String model
-
color
private String color
-
mileage
private int mileage
-
-
Method Detail
-
getId
public long getId()
-
setId
private void setId(long id)
-
getMake
public String getMake()
-
setMake
public void setMake(String make)
-
getMileage
public int getMileage()
-
setMileage
public void setMileage(int mileage)
-
getModel
public String getModel()
-
setModel
public void setModel(String model)
-
getColor
public String getColor()
-
setColor
public void setColor(String color)
-
-