| | |
| | | package com.qxueyou.scc.sys.model; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | |
| | | import javax.persistence.*; |
| | | import javax.persistence.CascadeType; |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.FetchType; |
| | | import javax.persistence.GeneratedValue; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.JoinColumn; |
| | | import javax.persistence.JoinTable; |
| | | import javax.persistence.ManyToMany; |
| | | import javax.persistence.ManyToOne; |
| | | import javax.persistence.NamedQuery; |
| | | import javax.persistence.OneToMany; |
| | | import javax.persistence.Table; |
| | | import javax.persistence.Temporal; |
| | | import javax.persistence.TemporalType; |
| | | |
| | | import org.hibernate.annotations.*; |
| | | import org.hibernate.annotations.Cache; |
| | | import org.hibernate.annotations.CacheConcurrencyStrategy; |
| | | import org.hibernate.annotations.CollectionId; |
| | | import org.hibernate.annotations.GenericGenerator; |
| | | import org.hibernate.annotations.Type; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonIgnore; |
| | |
| | | |
| | | @OneToMany(mappedBy = "parent") |
| | | @JsonIgnore |
| | | private List<SysMenu> children; |
| | | private List<SysMenu> children=new ArrayList<>(); |
| | | |
| | | public int getOpenType() { |
| | | return openType; |
| | | @Transient |
| | | private Set<SysMenu> childrenList = new HashSet<>(); |
| | | |
| | | public Set<SysMenu> getChildrenList() { |
| | | return childrenList; |
| | | } |
| | | |
| | | public void setChildrenList(Set<SysMenu> childrenList) { |
| | | this.childrenList = childrenList; |
| | | } |
| | | |
| | | public void setOpenType(int openType) { |