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

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

There is a newer version: 2.3.8.RELEASE
Show newest version
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_column")
public class RoleResourceColumn extends IdEntity {
    private static final long serialVersionUID = 829816606023004130L;

    @Column
    protected String roleId;

    @Column
    protected String resId;

    @JsonIgnoreProperties(value = {"resource", "rrcs"}, allowSetters = true)
    @Fetch(FetchMode.JOIN)
    @ManyToOne
    @NotFound(action = NotFoundAction.IGNORE)
    @JoinColumn(name = "column_id")
    protected ResourceColumn column;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy