package com.changhong.epc.bean.admin.menu;
|
|
import com.changhong.epc.constter.base.BaseBean;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import javax.persistence.Column;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
import java.io.Serializable;
|
import java.util.List;
|
|
/**
|
* 菜单
|
* @ClassName: CorresElField
|
* @author [九鼎联合科技]
|
* @date 2017年09月12日 上午09:51:28
|
*/
|
@Table(name="epc_menu")
|
@Data
|
@EqualsAndHashCode(callSuper=true)
|
public class Menu extends BaseBean implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 标题code
|
* 表字段:text
|
*/
|
@Column(name="text")
|
private String text;
|
|
/**
|
* link链接
|
* 表字段:link
|
*/
|
@Column(name="link")
|
private String link;
|
|
/**
|
* 图表地址
|
* 表字段:icon
|
*/
|
@Column(name="icon")
|
private String icon;
|
|
/**
|
* 上级菜单id
|
* 表字段:p_id
|
*/
|
@Column(name="p_link")
|
private String parentLink;
|
|
@Transient
|
private String translate;
|
|
public String getTranslate() {
|
return this.text;
|
}
|
|
/**
|
* 下级菜单
|
*/
|
@Transient
|
private List<Menu> submenu;
|
|
}
|