1 | public class Car implements java.io.Serializable {↵ | | 1 | public class Alien {↵
|
|
2 | private long id;↵ | | 2 | private Long id;↵
|
3 | private String model;↵ | | 3 | private String ↵
|
4 | private CarType carType;↵ | | |
|
5 | private Set carParts = new HashSet();↵ | | |
|
6 | ↵ | | |
|
7 | /**↵ | | |
|
8 | * @return Returns the carType.↵ | | |
|
9 | */↵ | | |
|
10 | public CarType getCarType() {↵ | | |
|
11 | return carType;↵ | | |
|
12 | }↵ | | |
|
13 | /**↵ | | |
|
14 | * @param carType The carType to set.↵ | | |
|
15 | */↵ | | |
|
16 | public void setCarType(CarType carType) {↵ | | |
|
17 | this.carType = carType;↵ | | |
|
18 | }↵ | | |
|
19 | /**↵ | | |
|
20 | * @return Returns the id.↵ | | |
|
21 | */↵ | | 4 | identity;↵
|
| | | 5 | private String planet;↵
|
| | | 6 | private String species;↵
|
| | | 7 | ↵
|
| | | 8 | public void setIdentity(String identity) {↵
|
| | | 9 | this.identity = identity;↵
|
| | | 10 | }↵
|
22 | public long getId() {↵ | | 11 | public String getIdentity() {↵
|
23 | return id;↵ | | 12 | return id↵
|
24 | }↵ | | |
|
25 | /**↵ | | |
|
26 | * @param id The id to set.↵ | | |
|
27 | */↵ | | |
|
28 | public void setId(long id) {↵ | | |
|
29 | this.id = id;↵ | | |
|
30 | }↵ | | |
|
31 | /**↵ | | |
|
32 | * @return Returns the model.↵ | | |
|
33 | */↵ | | 13 | entity;↵
|
| | | 14 | }↵
|
| | | 15 | public void setSpecies(String species) {↵
|
| | | 16 | this.species = species;↵
|
| | | 17 | }↵
|
34 | public String getModel() {↵ | | 18 | public String getSpecies() {↵
|
35 | return model;↵ | | 19 | return ↵
|
36 | }↵ | | |
|
37 | /**↵ | | |
|
38 | * @param model The model to set.↵ | | |
|
39 | */↵ | | 20 | species;↵
|
| | | 21 | }↵
|
40 | public void setModel(String model) {↵ | | 22 | public void setPlanet(String planet) {↵
|
41 | this.model = model;↵ | | 23 | this.planet = planet;↵
|
42 | }↵ | | 24 | }↵
|
43 | public Set getCarParts() {↵ | | 25 | public String getPlanet() {↵
|
44 | return carParts;↵ | | 26 | return planet;↵
|
45 | }↵ | | 27 | }↵
|
46 | public void setCarParts(Set carParts) {↵ | | 28 | public void set↵
|
47 | this.carParts = carParts↵ | | 29 | Id(Long id) {↵
|
| | | 30 | this.id = id;↵
|
| | | 31 | }↵
|
| | | 32 | public Long getId() {↵
|
48 | ;↵ | | 33 | return id;↵
|
49 | | | 34 |
|