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

com.feingto.cloud.domain.account.RoleResourceButton Maven / Gradle / Ivy

There is a newer version: 2.3.5.RELEASE
Show newest version
package com.feingto.cloud.domain.account;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.feingto.cloud.data.jpa.entity.IdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 角色按钮
 *
 * @author longfei
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Entity
@DynamicUpdate
@Table(name = "sy_role_res_btn")
public class RoleResourceButton extends IdEntity {
    @JsonIgnoreProperties(value = {"resource", "rrbs"}, allowSetters = true)
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "btn_id")
    private ResourceButton button;

    @Column(nullable = false)
    private String roleId;

    @Column(nullable = false)
    private String resId;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy