首页 > 编程知识 正文

java字典排序,java类似字典

时间:2023-05-06 12:59:01 阅读:19967 作者:1074

[java]代码库package com.founder.znzhdd.model;

import java.io.Serializable;

import javax.persistence.Column;

import javax.persistence.Entity;

import javax.persistence.generated value;

import javax.persistence.Id;

import javax.persistence.Table;

importorg.hibernate.annotations.generic generator;

//*

@suppresswarnings('serial ' ) ) ) )。

@Entity

@table(name='t_ics_dictionary ' ) )。

publicclassdictionaryimplementsserializable {

//*

私有字符串指南;

//*

私有字符串名称;

私有字符串父项id;

私有字符串类型;

私有字符串代码;

私有字符串is node;

私有字符串磁盘;

@column(name='code ',length=10 ) )。

公共字符串获取代码

返回代码;

}

@column(name='Descs ',length=50 ) )。

公共字符串获取桌面

返回磁盘;

}

@ generic generator (name=' generator ',strategy='uuid.hex ' )。

@Id

@ generated value (generator=' generator ' () ) ) ) ) ) ) )

@column(name='guid ',unique=true,nullable=false,length=40 ) ) ) )。

公共字符串获取指南

返回指南;

}

@column(name='isnode ',length=40 ) )。

公共字符串获取节点

返回节点;

}

@column(name='name ',length=50 ) )。

公共字符串getname

返回名称;

}

@column(name='parent_id ',length=40 ) )。

公共字符串获取父项id

返回父项;

}

@column(name='type ',length=100 ) )。

公共字符串获取类型

返回类型;

}

公共语音代码(字符串代码) {

this.code=代码;

}

公共语音集(字符串盘) {

this.desc=desc;

}

publicvoidsetguid (字符串指南) {

this.guid=guid;

}

publicvoidsetisnode (字符串节点)。

this.isNode=isNode;

}

公共语音集名称(字符串名称) {

this.name=name;

}

publicvoidsetparentid (字符串参数)。

this.parentId=parentId;

}

公共语音设置(字符串类型) {

this.type=type;

}

}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。