com.feingto.cloud.domain.account.RoleResourceColumn Maven / Gradle / Ivy
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_column")
public class RoleResourceColumn extends IdEntity {
@JsonIgnoreProperties(value = {"resource", "rrcs"}, allowSetters = true)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "column_id")
private ResourceColumn column;
@Column(nullable = false)
private String roleId;
@Column(nullable = false)
private String resId;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy