improve security.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
package fr.dcproject.entity
|
||||
|
||||
import fr.postgresjson.entity.EntityCreatedAt
|
||||
import fr.postgresjson.entity.EntityCreatedAtImp
|
||||
import fr.postgresjson.entity.UuidEntity
|
||||
import fr.postgresjson.entity.*
|
||||
import org.joda.time.DateTime
|
||||
import java.util.*
|
||||
|
||||
|
||||
class Citizen(
|
||||
id: UUID = UUID.randomUUID(),
|
||||
var name: Name?,
|
||||
@@ -16,7 +13,8 @@ class Citizen(
|
||||
var followanonymous: Boolean? = null,
|
||||
var user: User?
|
||||
) : UuidEntity(id),
|
||||
EntityCreatedAt by EntityCreatedAtImp() {
|
||||
EntityCreatedAt by EntityCreatedAtImp(),
|
||||
EntityDeletedAt by EntityDeletedAtImp() {
|
||||
data class Name(
|
||||
var firstName: String?,
|
||||
var lastName: String?,
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package fr.dcproject.entity
|
||||
|
||||
import fr.postgresjson.entity.EntityUpdatedAt
|
||||
import fr.postgresjson.entity.EntityUpdatedAtImp
|
||||
import fr.postgresjson.entity.UuidEntity
|
||||
import fr.postgresjson.entity.*
|
||||
import java.util.*
|
||||
|
||||
open class Comment <T: UuidEntity> (
|
||||
@@ -14,4 +12,5 @@ open class Comment <T: UuidEntity> (
|
||||
var parent: Comment<T>? = null,
|
||||
var parentsIds: List<UUID>? = null
|
||||
): Extra<T>(id, createdBy),
|
||||
EntityUpdatedAt by EntityUpdatedAtImp()
|
||||
EntityUpdatedAt by EntityUpdatedAtImp(),
|
||||
EntityDeletedAt by EntityDeletedAtImp()
|
||||
|
||||
Reference in New Issue
Block a user