com.quhaodian.user.data.entity.Menu Maven / Gradle / Ivy
package com.quhaodian.user.data.entity;
import com.quhaodian.data.entity.CatalogEntity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;
/**
* 菜单实体
*
* @author ada
*/
@Entity
@Table(name = "menu")
public class Menu extends CatalogEntity {
/**
* 分类 0为菜单1为功能
*/
private Integer catalog;
/**
* 子菜单
*/
@OrderBy("sortNum asc")
@OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
private List