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.
28 lines
548 B
Kotlin
28 lines
548 B
Kotlin
package moe.odango.index.entity
|
|
|
|
import io.requery.*
|
|
import moe.odango.index.utils.EntityHelper
|
|
import moe.odango.index.utils.InfoSource
|
|
import moe.odango.index.utils.helper
|
|
import java.util.*
|
|
|
|
@Entity
|
|
interface AnimeGenre : Persistable {
|
|
@get:Key
|
|
val id: UUID
|
|
|
|
@get:ManyToOne
|
|
@get:ForeignKey
|
|
val anime: Anime
|
|
|
|
@get:ManyToOne
|
|
@get:ForeignKey
|
|
val genre: Genre
|
|
|
|
val source: InfoSource
|
|
|
|
companion object : EntityHelper<AnimeGenreEntity> by helper(::AnimeGenreEntity, {
|
|
setId(UUID.randomUUID())
|
|
})
|
|
}
|