View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-5-22 下午05:15:58
4    */
5   package gboat2.base.core.model;
6   
7   import gboat2.base.core.annotation.DateFormat;
8   
9   import java.util.Date;
10  
11  import javax.persistence.Column;
12  import javax.persistence.Entity;
13  import javax.persistence.GeneratedValue;
14  import javax.persistence.Id;
15  import javax.persistence.Table;
16  import javax.persistence.Temporal;
17  import javax.persistence.TemporalType;
18  
19  import org.hibernate.annotations.GenericGenerator;
20  
21  /**
22   * 
23   * 页面元数据
24   * @author lysming
25   * @since jdk1.6
26   * @date 2012-5-22
27   *  
28   */
29  @Entity
30  @Table(name = "G2_T_CONTENT_METADATA")
31  public class ContentMetadata {
32  
33  	/** 元数据ID */
34  	private String metadataId;
35  
36  	/** 文件名称 */
37  	private String fileName;
38  
39  	/** bundle名称 */
40  	private String bundleSymble;
41  
42  	/** action类名(含包名)*/
43  	private String actionName;
44  
45  	/** 方法名称 */
46  	private String invokeMethod;
47  
48  	/** 创建时间 */
49  	private Date createTime;
50  
51  	/** 最新修改时间 */
52  	private Date modifyTime;
53  
54  	/** 状态 */
55  	private String metaDataStatus;
56  
57  	/** 元数据内容 */
58  	private String content;
59  
60  	@Id
61  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
62  	@GeneratedValue(generator = "generator")
63  	@Column(name = "METADATA_ID", length = 40)
64  	public String getMetadataId() {
65  		return metadataId;
66  	}
67  
68  	public void setMetadataId(String metadataId) {
69  		this.metadataId = metadataId;
70  	}
71  
72  	@Column(name = "FILE_NAME", length = 200)
73  	public String getFileName() {
74  		return fileName;
75  	}
76  
77  	public void setFileName(String fileName) {
78  		this.fileName = fileName;
79  	}
80  
81  	@Column(name = "BUNDLE_SYMBLE", length = 100)
82  	public String getBundleSymble() {
83  		return bundleSymble;
84  	}
85  
86  	public void setBundleSymble(String bundleSymble) {
87  		this.bundleSymble = bundleSymble;
88  	}
89  
90  	@Column(name = "ACTION_NAME", length = 200)
91  	public String getActionName() {
92  		return actionName;
93  	}
94  
95  	public void setActionName(String actionName) {
96  		this.actionName = actionName;
97  	}
98  
99  	@Temporal(TemporalType.TIMESTAMP)
100 	@Column(name = "CREATE_TIME", length = 19)
101 	@DateFormat("yyyy-MM-dd HH:mm:ss")
102 	public Date getCreateTime() {
103 		return createTime;
104 	}
105 
106 	@Column(name = "INVOKE_METHOD", length = 50)
107 	public String getInvokeMethod() {
108 		return invokeMethod;
109 	}
110 
111 	public void setInvokeMethod(String invokeMethod) {
112 		this.invokeMethod = invokeMethod;
113 	}
114 
115 	public void setCreateTime(Date createTime) {
116 		this.createTime = createTime;
117 	}
118 
119 	@Temporal(TemporalType.TIMESTAMP)
120 	@Column(name = "MODIFY_TIME", length = 19)
121 	@DateFormat("yyyy-MM-dd HH:mm:ss")
122 	public Date getModifyTime() {
123 		return modifyTime;
124 	}
125 
126 	public void setModifyTime(Date modifyTime) {
127 		this.modifyTime = modifyTime;
128 	}
129 
130 	@Column(name = "METADATA_STATUS", length = 2)
131 	public String getMetaDataStatus() {
132 		return metaDataStatus;
133 	}
134 
135 	public void setMetaDataStatus(String metaDataStatus) {
136 		this.metaDataStatus = metaDataStatus;
137 	}
138 
139 	@Column(name = "CONTENT", length = 4000)
140 	public String getContent() {
141 		return content;
142 	}
143 
144 	public void setContent(String content) {
145 		this.content = content;
146 	}
147 }