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

studio.crud.feature.auth.entity.model.EntityAuthenticationMethod.kt Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package studio.crud.feature.auth.entity.model

import studio.crud.feature.auth.authentication.method.enums.AuthenticationMethodType
import studio.crud.feature.jpa.model.AbstractJpaUpdatableEntity
import javax.persistence.*

@javax.persistence.Entity
@Table(name = "auth_entity_authentication_method")
class EntityAuthenticationMethod(
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "entity_id")
    var entity: Entity,

    @Column
    @Enumerated(EnumType.STRING)
    var methodType: AuthenticationMethodType,

    @Column
    var param1: String? = null,

    @Column
    var param2: String? = null,

    @Column
    var param3: String? = null,

    @Column
    var param4: String? = null,

    @Column
    var param5: String? = null,

    @Column(name = "is_active", columnDefinition = "BOOLEAN DEFAULT TRUE")
    var active: Boolean = true,

    @Column(name = "is_primary", columnDefinition = "BOOLEAN DEFAULT FALSE")
    var primary: Boolean = false
) : AbstractJpaUpdatableEntity()





© 2015 - 2025 Weber Informatics LLC | Privacy Policy