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.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