View Javadoc
1   /**
2    * Copyright (c) 2009-2010 by Glodon
3    * All rights reserved.
4    */
5   package gboat2.web.model;
6   
7   import java.util.Date;
8   
9   import javax.persistence.Column;
10  import javax.persistence.Entity;
11  import javax.persistence.GeneratedValue;
12  import javax.persistence.Id;
13  import javax.persistence.Table;
14  
15  import org.hibernate.annotations.GenericGenerator;
16  
17  /**
18   * 组织定义
19   * 
20   * @author liuliang 2010-5-31
21   */
22  @Entity
23  @Table(name = "G2_T_ORGAN_DEFINE")
24  public class OrganDefine {
25  
26  	private String organDefineId;
27  	//定义名称
28  	private String organDefineName;
29  	//组织机构显示名称
30  	private String organDefineShowName;
31  	//服务类型,1:bundle service,2:web service
32  	private String serviceType;
33  	//服务地址,bundle service时为实现类,web service时为wsdl地址
34  	private String serviceAddr;
35  	//描述
36  	private String description;
37  	//状态
38  	private String status;
39  	//添加时间
40  	private Date commitTime;
41  
42  	@Id
43  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
44  	@GeneratedValue(generator = "generator")
45  	@Column(name = "ORGAN_DEFINE_ID", length = 40)
46  	public String getOrganDefineId() {
47  		return organDefineId;
48  	}
49  
50  	public void setOrganDefineId(String organDefineId) {
51  		this.organDefineId = organDefineId;
52  	}
53  
54  	@Column(name = "ORGAN_DEFINE_NAME", length = 200)
55  	public String getOrganDefineName() {
56  		return organDefineName;
57  	}
58  
59  	public void setOrganDefineName(String organDefineName) {
60  		this.organDefineName = organDefineName;
61  	}
62  
63  	@Column(name = "ORGAN_DEFINE_SHOW_NAME", length = 200)
64  	public String getOrganDefineShowName() {
65  		return organDefineShowName;
66  	}
67  
68  	public void setOrganDefineShowName(String organDefineShowName) {
69  		this.organDefineShowName = organDefineShowName;
70  	}
71  
72  	@Column(name = "SERVICE_TYPE", length = 1)
73      public String getServiceType() {
74      	return serviceType;
75      }
76  	
77      public void setServiceType(String serviceType) {
78      	this.serviceType = serviceType;
79      }
80  
81  	@Column(name = "SERVICE_ADDR", length = 400)
82  	public String getServiceAddr() {
83  		return serviceAddr;
84  	}
85  
86  	public void setServiceAddr(String serviceAddr) {
87  		this.serviceAddr = serviceAddr;
88  	}
89  
90  	@Column(name = "DESCRIPTION", length = 2000)
91  	public String getDescription() {
92  		return description;
93  	}
94  
95  	public void setDescription(String description) {
96  		this.description = description;
97  	}
98  
99  	@Column(name = "STATUS", length = 10)
100 	public String getStatus() {
101 		return status;
102 	}
103 
104 	public void setStatus(String status) {
105 		this.status = status;
106 	}
107 
108 	@Column(name = "COMMIT_TIME", length = 20)
109 	public Date getCommitTime() {
110 		return commitTime;
111 	}
112 
113 	public void setCommitTime(Date commitTime) {
114 		this.commitTime = commitTime;
115 	}
116 }