用户注册



邮箱:

密码:

用户登录


邮箱:

密码:
记住登录一个月忘记密码?

发表随想


还能输入:200字
云代码 - java代码库

字典表范例

2013-08-27 作者: 木有神经举报

[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;
	}

}


网友评论    (发表评论)


发表评论:

评论须知:

  • 1、评论每次加2分,每天上限为30;
  • 2、请文明用语,共同创建干净的技术交流环境;
  • 3、若被发现提交非法信息,评论将会被删除,并且给予扣分处理,严重者给予封号处理;
  • 4、请勿发布广告信息或其他无关评论,否则将会删除评论并扣分,严重者给予封号处理。


扫码下载

加载中,请稍后...

输入口令后可复制整站源码

加载中,请稍后...