1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.jboss.as.quickstart.cdi.veto.model;
18
19 import javax.persistence.Basic;
20 import javax.persistence.Entity;
21 import javax.persistence.GeneratedValue;
22 import javax.persistence.GenerationType;
23 import javax.persistence.Id;
24
25
26
27
28 @Entity
29 public class Car {
30 @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
31 private Long id;
32
33 @Basic
34 private String model;
35
36 @Basic
37 private String make;
38
39 @Basic
40 private String color;
41
42 public Long getId() {
43 return id;
44 }
45
46 public void setId(Long id) {
47 this.id = id;
48 }
49
50 public String getModel() {
51 return model;
52 }
53
54 public void setModel(String model) {
55 this.model = model;
56 }
57
58 public String getMake() {
59 return make;
60 }
61
62 public void setMake(String make) {
63 this.make = make;
64 }
65
66 public String getColor() {
67 return color;
68 }
69
70 public void setColor(String color) {
71 this.color = color;
72 }
73 }