pixelbumper
08/06/2017, 2:15 PMUNKNOWN
value and made the setter private.
@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
abstract class Credential(
@ManyToOne
@JoinColumn
val account: Account
) {
@Id
val id = UUID.randomUUID()
@Enumerated(EnumType.STRING)
@Column(name = "DTYPE", insertable = false, updatable = false)
var type: CredentialType = CredentialType.UNKNOWN
private set
pixelbumper
08/06/2017, 2:31 PMpixelbumper
08/06/2017, 2:36 PMpixelbumper
08/06/2017, 2:49 PMpixelbumper
08/06/2017, 2:49 PMimage.png▾
pixelbumper
08/06/2017, 2:50 PMpixelbumper
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?cleiter
08/07/2017, 7:18 AMpixelbumper
08/07/2017, 7:39 AMcleiter
08/07/2017, 7:40 AMpixelbumper
08/07/2017, 7:40 AMcleiter
08/07/2017, 7:41 AMcleiter
08/07/2017, 7:42 AMpixelbumper
08/07/2017, 7:46 AMcleiter
08/07/2017, 7:50 AMcleiter
08/07/2017, 7:50 AMpixelbumper
08/07/2017, 7:51 AMtjb
08/07/2017, 9:34 PMtimp
08/07/2017, 9:46 PMdharrigan
08/08/2017, 2:06 PMdharrigan
08/08/2017, 2:07 PM@SpringBootTest(classes = arrayOf(Application::class))
dharrigan
08/08/2017, 2:07 PMdharrigan
08/08/2017, 2:07 PM@SpringBootTest(classes = [(Application::class)])
dharrigan
08/08/2017, 2:08 PMdharrigan
08/08/2017, 2:08 PMCaused by: java.lang.IllegalArgumentException: Collection has more than one element.
dharrigan
08/08/2017, 2:08 PMenleur
08/08/2017, 3:03 PM@SpringBootTest(classes = [Application::class])
should it be like this?dharrigan
08/08/2017, 3:36 PMdharrigan
08/08/2017, 3:37 PMdharrigan
08/08/2017, 4:12 PM