Object reference delegate
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user