Add Opinion entity and add opinions on article
This commit is contained in:
14
src/main/kotlin/fr/dcproject/entity/Opinion.kt
Normal file
14
src/main/kotlin/fr/dcproject/entity/Opinion.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
package fr.dcproject.entity
|
||||
|
||||
import fr.postgresjson.entity.immutable.*
|
||||
import java.util.*
|
||||
|
||||
open class Opinion<T : TargetI>(
|
||||
id: UUID = UUID.randomUUID(),
|
||||
override val createdBy: CitizenBasic,
|
||||
override var target: T,
|
||||
var name: String
|
||||
) : ExtraI<T>,
|
||||
UuidEntity(id),
|
||||
EntityCreatedAt by EntityCreatedAtImp(),
|
||||
EntityCreatedBy<CitizenBasicI> by EntityCreatedByImp(createdBy)
|
||||
Reference in New Issue
Block a user