package gaf3.core.services.code.entity

import javax.persistence.*
import java.io.Serializable
import java.util.*


/**
 * The persistent class for the GAF_CODE_ITEM database table.
 *
 */
@Entity
@Table(name = "GAF_CODE_ITEM")
class GafCodeItem : Serializable {

    @Id
    @Column(name = "ID", length = 48)
    var id: String? = null

    @Column(name = "ITEM_TYPE", length = 48)
    var type: String? = null // 类型：group - 字典分类； {type} - 字典项；

    @Column(name = "CODE", length = 48)
    var code: String? = null

    @Column(name = "NAME", length = 48)
    var name: String? = null

    @Column(name = "ALIAS", length = 48)
    var alias: String? = null

    @Column(name = "STATUS", length = 1)
    var status: String? = null

    @Column(name = "PRESET")
    var preset: Int? = null // 是否预设值： 0-否，1-是；系统预设值不可删除

    @Column(name = "REMARK")
    var remark: String? = null

    companion object {
        private const val serialVersionUID = 1L
    }

}