All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.base4j.mvc.sys.entity.SysRoleResource Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package com.base4j.mvc.sys.entity;

import com.base4j.mybatis.config.mybatis.annotations.One2One;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "SEED_SYS_ROLE_RESOURCE")
public class SysRoleResource implements Serializable {
    private static final long serialVersionUID = -3755254892758648117L;
    @Id
    private Long id;
    private Long sysRoleId;
    private Long sysResourceId;

    @One2One(columns = "sys_resource_id=id")
    private SysResource sysResource;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSysRoleId() {
        return sysRoleId;
    }

    public void setSysRoleId(Long sysRoleId) {
        this.sysRoleId = sysRoleId;
    }

    public Long getSysResourceId() {
        return sysResourceId;
    }

    public void setSysResourceId(Long sysResourceId) {
        this.sysResourceId = sysResourceId;
    }

    public SysResource getSysResource() {
        return sysResource;
    }

    public void setSysResource(SysResource sysResource) {
        this.sysResource = sysResource;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy