```@Entity @Inheritance(strategy = InheritanceType...
# spring
p
Copy code
@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
abstract class Credential(
        account: Account
) {

    @ManyToOne
    @JoinColumn
    var account: Account = account

    @Id
    var id = UUID.randomUUID()
        private set

    @Enumerated(EnumType.STRING)
    @Column(name = "DTYPE", insertable = false, updatable = false)
    var type: CredentialType = CredentialType.UNKNOWN
        private set
guess this is the propper way to do it. Objections?