Lots of things
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user