1 package org.hibernate.test.dom4j; 2 3 import java.util.HashSet ; 4 import java.util.Set ; 5 6 9 public class Car implements java.io.Serializable { 10 11 private long id; 12 private String model; 13 private CarType carType; 14 private Set carParts = new HashSet (); 15 16 19 public CarType getCarType() { 20 return carType; 21 } 22 25 public void setCarType(CarType carType) { 26 this.carType = carType; 27 } 28 31 public long getId() { 32 return id; 33 } 34 37 public void setId(long id) { 38 this.id = id; 39 } 40 43 public String getModel() { 44 return model; 45 } 46 49 public void setModel(String model) { 50 this.model = model; 51 } 52 public Set getCarParts() { 53 return carParts; 54 } 55 public void setCarParts(Set carParts) { 56 this.carParts = carParts; 57 } 58 } 59 | Popular Tags |