1
2
3
4
5 package gboat2.base.dao.impl;
6
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Id;
11 import javax.persistence.Table;
12
13 import org.hibernate.annotations.GenericGenerator;
14
15
16
17
18
19 @Entity
20 @Table(name = "t_po2", catalog = "common")
21 public class TestPoB implements java.io.Serializable {
22 private String field11;
23 private String field12;
24 private String po1_id;
25 private String id;
26
27
28 @GenericGenerator(name = "generator", strategy = "uuid.hex")
29 @Id
30 @GeneratedValue(generator = "generator")
31 @Column(name = "id", unique = true, nullable = false, length = 40)
32 public String getId() {
33 return this.id;
34 }
35
36 public void setId(String id) {
37 this.id = id;
38 }
39
40 @Column(name = "field11", nullable = true, length = 30)
41 public String getField11() {
42 return field11;
43 }
44
45 public void setField11(String field11) {
46 this.field11 = field11;
47 }
48
49 @Column(name = "po1_id", nullable = false, length = 40)
50 public String getPo1Id() {
51 return po1_id;
52 }
53
54 public void setPo1Id(String po1Id) {
55 po1_id = po1Id;
56 }
57
58 @Column(name = "field12", nullable = true, length = 50)
59 public String getField12() {
60 return field12;
61 }
62
63 public void setField12(String field12) {
64 this.field12 = field12;
65 }
66 }