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

com.feingto.cloud.domain.oauth2.ClientDetailApi 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 com.feingto.cloud.domain.enums.Stage;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;

/**
 * @author longfei
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Entity
@Table(name = "oauth_client_detail_api")
@DynamicUpdate
public class ClientDetailApi extends IdEntity {
    @ManyToOne
    @JoinColumn
    private ClientDetail clientDetail;

    @NotBlank
    @Column(length = 64, nullable = false)
    private String apiId;

    /**
     * 环境类型(线上、预发、测试)
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 16)
    @ColumnDefault("'TEST'")
    private Stage stage = Stage.TEST;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy