pixelbumper
08/06/2017, 2:59 PM@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?