Hello community, Starting a plain todo project - b...
# exposed
d
Hello community, Starting a plain todo project - both for learning and as a personal project. This question is probably more Gson / serde related, but if I understand correctly the issue happens because of exposed dao specifics, so maybe someone had similar issues here and will be able to help. Here's my table/entity description:
Copy code
object SimpleTasks : IntIdTable() {
    val title = varchar("title", 255).index()
    val done = bool("done")
    val deadline = datetime("deadline")
}

class SimpleTask(id: EntityID<Int>, title: String, done: Boolean, deadline: LocalDateTime) :
    IntEntity(id), ITask {
    constructor(id: EntityID<Int>, task: ITask) : this(id, task.title, task.done, LocalDateTime.now())

    companion object : IntEntityClass<SimpleTask>(SimpleTasks)

    override var title by SimpleTasks.title
    override var done by SimpleTasks.done

    var deadline by SimpleTasks.deadline
}
And here's what I get trying to derialize / deserialize with Gson: