com.haoxuer.discover.user.data.entity.Menu Maven / Gradle / Ivy
package com.haoxuer.discover.user.data.entity;
import com.haoxuer.discover.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy