package gaf3.core.services.bff.entity

import org.springframework.data.annotation.Immutable
import java.io.Serializable
import java.time.LocalDateTime
import javax.persistence.*


/**
 * The persistent class for the GAF_GROUP_ROLE database table.
 *
 */
@Entity(name = "GafBffBindItem")
@Table(name = "GAF_BIND_ITEM")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="BIND_TYPE",discriminatorType=DiscriminatorType.STRING)
@Immutable
open class BffBindItem : Serializable {

    @Id
    @Column(name = "ID", length = 48)
    open var id: String? = null

    @Column(name = "BIND_TYPE", length = 48, insertable = false, updatable = false)
    open var type: String? = null

    @Column(name = "SOURCE", length = 48)
    open var source: String? = null

    @Column(name = "TARGET", length = 48)
    open var target: String? = null

    @Column(name = "PARAM")
    open var param: String? = null

    @Column(name = "REMARK")
    open var remark: String? = null

    @Column(name = "CREATED_AT")
    open var createdAt: LocalDateTime? = null

    companion object {
        private const val serialVersionUID = 1L
    }

}