pixelbumper
08/06/2017, 12:56 PM@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
abstract class Credential(
@ManyToOne
@JoinColumn
val account: Account
) {
@Id
val id = UUID.randomUUID()
@Column(name = "DTYPE", insertable = false, updatable = false)
val type: CredentialType
Preferably i would like the type field to be a val
but unfortunately the field needs to be somewhat initialized. What are my options for such a case?