Allow to set values only internally

This commit is contained in:
Korna 2022-11-11 15:17:39 +03:00
parent 8da83cea86
commit 7879a50bf7
1 changed files with 4 additions and 0 deletions

View File

@ -15,5 +15,9 @@ abstract class BaseUuidIdEntity : BaseEntity() {
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid2")
open var id: UUID? = null
@Suppress("RedundantSetter")
protected set(id) {
field = id
}
}