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

com.feingto.cloud.domain.oauth2.Scope Maven / Gradle / Ivy

There is a newer version: 2.3.5.RELEASE
Show newest version
package com.feingto.cloud.domain.oauth2;

import com.feingto.cloud.data.jpa.entity.IdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.HashSet;
import java.util.Set;

/**
 * @author longfei
 */
@Data
@EqualsAndHashCode(of = "value", callSuper = false)
@ToString(exclude = "clientDetailScopes")
@Accessors(chain = true)
@Entity
@Table(name = "oauth_scope")
@DynamicUpdate
public class Scope extends IdEntity {
    @Column(length = 128)
    private String label;

    @NotBlank
    @Column(nullable = false)
    private String value;

    @OneToMany(mappedBy = "scope")
    private Set clientDetailScopes = new HashSet<>();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy