Compare commits

...

1 Commits

Author SHA1 Message Date
Korna 7879a50bf7 Allow to set values only internally 2022-11-11 15:17:39 +03:00
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
}
}