You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object MyTable : LongIdTable() {
// ...val created = timestamp("created").defaultExpression(CurrentTimestamp).databaseGenerated()
val modified = timestamp("modified").defaultExpression(CurrentTimestamp).databaseGenerated()
// ...
}
and the following entity:
classMyEntity(id:EntityID<Long>) : LongEntity(id) {
companionobject:LongEntityClass<MyEntity>(MyTable)
// ...val created by MyTable.created
var modified by MyTable.modified
// ...
}
Now, if I create the entity with:
val obj =MyEntity.new {
// All properties are initialized except created and modified
}
// Fails
assertNotNull(obj.created)
But in the IDEA debugger, if I click on the property, it shows the Instant object that has been created in the database.
If I run into the assertion after clicking the property, the assertion doesn't fail anymore.
How is that possible?
The text was updated successfully, but these errors were encountered:
I have the following table:
and the following entity:
Now, if I create the entity with:
But in the IDEA debugger, if I click on the property, it shows the Instant object that has been created in the database.
If I run into the assertion after clicking the property, the assertion doesn't fail anymore.
How is that possible?
The text was updated successfully, but these errors were encountered: