package com.publiccms.entities.sys;
// Generated 2018-6-5 18:18:57 by Hibernate Tools 5.1.6.Final

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.publiccms.common.generator.annotation.GeneratorColumn;

/**
 * SysModuleLang generated by hbm2java
 */
@Entity
@Table(name = "sys_module_lang")
public class SysModuleLang implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @GeneratorColumn(title = "ID")
    private SysModuleLangId id;
    /**
     * value<p>
     * 值
     */
    @GeneratorColumn(title = "值")
    private String value;

    public SysModuleLang() {
    }

    public SysModuleLang(SysModuleLangId id) {
        this.id = id;
    }

    public SysModuleLang(SysModuleLangId id, String value) {
        this.id = id;
        this.value = value;
    }

    @EmbeddedId

    @AttributeOverrides({
            @AttributeOverride(name = "moduleId", column = @Column(name = "module_id", nullable = false, length = 30)),
            @AttributeOverride(name = "lang", column = @Column(name = "lang", nullable = false, length = 20)) })
    public SysModuleLangId getId() {
        return this.id;
    }

    public void setId(SysModuleLangId id) {
        this.id = id;
    }

    @Column(name = "value", length = 100)
    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
