All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.eulerframework.web.module.basic.entity.Dictionary Maven / Gradle / Ivy

There is a newer version: 0.3.9
Show newest version
package net.eulerframework.web.module.basic.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;

import net.eulerframework.web.core.base.entity.UUIDEntity;

@SuppressWarnings("serial")
@Entity
@Table(name = "SYS_DICT", uniqueConstraints = {
        @UniqueConstraint(columnNames={"CODE", "DICT_KEY"}),
        @UniqueConstraint(columnNames={"CODE", "DICT_VALUE"}),
        @UniqueConstraint(columnNames={"CODE", "SHOW_ORDER"})})
public class Dictionary extends UUIDEntity {

    @Column(name = "CODE", nullable = false)
    private String code;
    @NotNull
    @Column(name = "DICT_KEY", nullable = false)
    private String key;
    @Column(name = "DICT_VALUE")
    private String value;   
    @Column(name = "SHOW_ORDER", nullable = false)
    private Integer showOrder;
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
    public Integer getShowOrder() {
        return showOrder;
    }
    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy