You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
488 B
Kotlin
22 lines
488 B
Kotlin
package moe.odango.index.entity
|
|
|
|
import io.requery.Entity
|
|
import io.requery.Key
|
|
import io.requery.Persistable
|
|
import moe.odango.index.utils.EntityHelper
|
|
import moe.odango.index.utils.InfoSource
|
|
import moe.odango.index.utils.helper
|
|
import java.util.*
|
|
|
|
@Entity
|
|
interface Genre : Persistable {
|
|
@get:Key
|
|
val id: UUID
|
|
val myAnimeListId: Int
|
|
val name: String
|
|
|
|
companion object : EntityHelper<GenreEntity> by helper(::GenreEntity, {
|
|
setId(UUID.randomUUID())
|
|
})
|
|
}
|