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

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

package com.feingto.cloud.domain.account;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.feingto.cloud.domain.IdEntity;
import lombok.*;
import org.hibernate.annotations.*;

import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色按钮
 *
 * @author longfei
 */
@Builder
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
@DynamicUpdate
@Table(name = "sy_role_res_btn")
public class RoleResourceButton extends IdEntity {
    private static final long serialVersionUID = 7300281583231509615L;

    @Column
    protected String roleId;

    @Column
    protected String resId;

    @JsonIgnoreProperties(value = {"resource", "rrbs"}, allowSetters = true)
    @Fetch(FetchMode.JOIN)
    @ManyToOne
    @NotFound(action = NotFoundAction.IGNORE)
    @JoinColumn(name = "btn_id")
    protected ResourceButton button;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy