KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > dom4j > Car


1 package org.hibernate.test.dom4j;
2
3 import java.util.HashSet JavaDoc;
4 import java.util.Set JavaDoc;
5
6 /**
7  * @author Paco Hernández
8  */

9 public class Car implements java.io.Serializable JavaDoc {
10
11     private long id;
12     private String JavaDoc model;
13     private CarType carType;
14     private Set JavaDoc carParts = new HashSet JavaDoc();
15     
16     /**
17      * @return Returns the carType.
18      */

19     public CarType getCarType() {
20         return carType;
21     }
22     /**
23      * @param carType The carType to set.
24      */

25     public void setCarType(CarType carType) {
26         this.carType = carType;
27     }
28     /**
29      * @return Returns the id.
30      */

31     public long getId() {
32         return id;
33     }
34     /**
35      * @param id The id to set.
36      */

37     public void setId(long id) {
38         this.id = id;
39     }
40     /**
41      * @return Returns the model.
42      */

43     public String JavaDoc getModel() {
44         return model;
45     }
46     /**
47      * @param model The model to set.
48      */

49     public void setModel(String JavaDoc model) {
50         this.model = model;
51     }
52     public Set JavaDoc getCarParts() {
53         return carParts;
54     }
55     public void setCarParts(Set JavaDoc carParts) {
56         this.carParts = carParts;
57     }
58 }
59
Popular Tags