Lots of things

This commit is contained in:
2020-06-22 17:34:45 +02:00
parent f134a83604
commit 3306b16f91
21 changed files with 482 additions and 344 deletions
-13
View File
@@ -1,13 +0,0 @@
package be.vandewalleh.entities
import me.liuwj.ktorm.entity.*
interface Chapter : Entity<Chapter> {
companion object : Entity.Factory<Chapter>()
val id: Int
var number: Int
var title: String
var content: String
var note: Note
}
+9 -2
View File
@@ -1,5 +1,6 @@
package be.vandewalleh.entities
import com.fasterxml.jackson.annotation.JsonIgnore
import me.liuwj.ktorm.entity.*
import java.time.LocalDateTime
import java.util.*
@@ -9,6 +10,12 @@ interface Note : Entity<Note> {
var uuid: UUID
var title: String
var user: User
var content: String
var updatedAt: LocalDateTime
}
@get:JsonIgnore
var user: User
// Not part of the Notes table
var tags: List<String>
}