View Javadoc
1   /**
2    * Copyright (c) 2009-2010 by Glodon
3    * All rights reserved.
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.JoinColumn;
12  import javax.persistence.OneToOne;
13  import javax.persistence.Table;
14  
15  import org.hibernate.annotations.GenericGenerator;
16  
17  /**
18   * @author lysming
19   * 
20   */
21  @Entity
22  @Table(name = "t_po1", catalog = "common")
23  public class TestPoA implements java.io.Serializable {
24  	private String field01;
25  	private String field02;
26  	private String id;
27  	
28  	private TestPoB poB;
29  
30  	// Property accessors
31  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
32  	@Id
33  	@GeneratedValue(generator = "generator")
34  	@Column(name = "id", unique = true, nullable = false, length = 40)
35  	public String getId() {
36  		return this.id;
37  	}
38  
39  	public void setId(String id) {
40  		this.id = id;
41  	}
42  
43  	@Column(name = "field01", nullable = true, length = 30)
44  	public String getField01() {
45  		return field01;
46  	}
47  
48  	public void setField01(String field01) {
49  		this.field01 = field01;
50  	}
51  
52  	@Column(name = "field02", nullable = true, length = 50)
53  	public String getField02() {
54  		return field02;
55  	}
56  
57  	public void setField02(String filed02) {
58  		this.field02 = filed02;
59  	}
60  }