| | |
| | |
|
| | | import java.io.Serializable;
|
| | |
|
| | | import javax.persistence.Column;
|
| | | import javax.persistence.Entity;
|
| | | import javax.persistence.FetchType;
|
| | | import javax.persistence.GeneratedValue;
|
| | | import javax.persistence.GenerationType;
|
| | | import javax.persistence.Id;
|
| | | import javax.persistence.JoinColumn;
|
| | | import javax.persistence.ManyToOne;
|
| | | import javax.persistence.Table;
|
| | | import org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | import com.yeshi.fanli.entity.system.System;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | |
|
| | | /**
|
| | | * 导航对应启用系统
|
| | |
| | | *
|
| | | * @date 2018年10月24日
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_super_homenavbar")
|
| | | @org.yeshi.utils.mybatis.Table("yeshi_ec_super_homenavbar")
|
| | | @Table("yeshi_ec_super_homenavbar")
|
| | | public class SuperHomeNavbar implements Serializable {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | @Id
|
| | | @Column(name = "sp_id")
|
| | | @GeneratedValue(strategy = GenerationType.AUTO)
|
| | | @org.yeshi.utils.mybatis.Column(name = "sp_id")
|
| | | private Long id;
|
| | |
|
| | | // 导航栏id
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "sp_navbar_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "sp_navbar_id")
|
| | | @Column(name = "sp_navbar_id")
|
| | | private HomeNavbar homeNavbar;
|
| | |
|
| | | // 系统id
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "sp_system_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "sp_system_id")
|
| | | private System system;
|
| | | @Column(name = "sp_system_id")
|
| | | private BusinessSystem system;
|
| | |
|
| | | public Long getId() {
|
| | | return id;
|
| | |
| | | this.homeNavbar = homeNavbar;
|
| | | }
|
| | |
|
| | | public System getSystem() {
|
| | | public BusinessSystem getSystem() {
|
| | | return system;
|
| | | }
|
| | |
|
| | | public void setSystem(System system) {
|
| | | public void setSystem(BusinessSystem system) {
|
| | | this.system = system;
|
| | | }
|
| | |
|