Object reference delegate

This commit is contained in:
2024-05-06 19:48:28 +02:00
parent 7a8d1cac62
commit 5fe320581b
3 changed files with 20 additions and 20 deletions

View File

@@ -38,11 +38,11 @@ class TestThreaded {
val age: Int,
var companyId: Long? = null
) : Persistable, Cloneable {
var company: Company? by Reference(
/* var company: Company? by Reference(
Company::class.java,
{ id -> companyId = id },
{ companyId }
)
)*/
companion object {
private const val serialVersionUID: Long = 1L
@@ -113,7 +113,7 @@ class TestThreaded {
name = names[random.nextInt(names.size)],
age = random.nextInt(0, 100),
)
person.company = company
//person.company = company
store(person)
}