[java]代码库
package com.founder.znzhdd.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
* 公共代码维护即字典管理
*
* @author zbc
* @version 1.0
*/
@SuppressWarnings("serial")
@Entity
@Table(name = "T_ICS_DICTIONARY" )
public class Dictionary implements Serializable {
/**
* 主键
*/
private String guid;
/**
* 名称
*/
private String name;
private String parentId;
private String type;
private String code;
private String isNode;
private String desc;
@Column(name = "CODE", length = 10)
public String getCode() {
return code;
}
@Column(name = "DESCS", length = 50)
public String getDesc() {
return desc;
}
@GenericGenerator(name = "generator", strategy = "uuid.hex")
@Id
@GeneratedValue(generator = "generator")
@Column(name = "GUID", unique = true, nullable = false, length = 40)
public String getGuid() {
return guid;
}
@Column(name = "ISNODE", length = 40)
public String getIsNode() {
return isNode;
}
@Column(name = "NAME", length = 50)
public String getName() {
return name;
}
@Column(name = "PARENT_ID", length = 40)
public String getParentId() {
return parentId;
}
@Column(name = "TYPE", length = 100)
public String getType() {
return type;
}
public void setCode(String code) {
this.code = code;
}
public void setDesc(String desc) {
this.desc = desc;
}
public void setGuid(String guid) {
this.guid = guid;
}
public void setIsNode(String isNode) {
this.isNode = isNode;
}
public void setName(String name) {
this.name = name;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public void setType(String type) {
this.type = type;
}
}