com.feingto.cloud.domain.oauth2.ClientDetailScope Maven / Gradle / Ivy
package com.feingto.cloud.domain.oauth2;
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.ColumnDefault;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
/**
* @author longfei
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Entity
@Table(name = "oauth_client_detail_scope")
@DynamicUpdate
public class ClientDetailScope extends IdEntity {
@ManyToOne
@JoinColumn
private ClientDetail clientDetail;
@JsonIgnoreProperties(value = {"id", "clientDetailScopes"}, allowSetters = true)
@ManyToOne
@JoinColumn
private Scope scope;
@Column
@ColumnDefault("false")
private boolean autoApprove = false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy