fuint-framework/fuint-base/src/main/java/com/fuint/base/dao/entities/TDutySource.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.fuint.base.dao.entities;

import javax.persistence.*;

/**
 * 角色权限中间表实体类
 * 
 * @author harrisonhan
 * @version $Id: TDutySource.java
 */
@Entity
@Table(name = "t_duty_source")
@NamedQuery(name = "TDutySource.findAll", query = "SELECT c FROM TDutySource c")
public class TDutySource implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(unique = true, nullable = false, name = "duty_source_id")
    private Long        id;
    /**
     * 关联权限
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "source_id")
    private TSource tSource;

    /**
     * 关联角色
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "duty_id")
    private TDuty tDuty;

    public Long getId() {
        return id;
    }

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

    public TDuty gettDuty() {
        return tDuty;
    }

    public void settDuty(TDuty tDuty) {
        this.tDuty = tDuty;
    }

    public TSource gettSource() {
        return tSource;
    }

    public void settSource(TSource tSource) {
        this.tSource = tSource;
后面还有 2 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。