diff --git a/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseUuidIdEntity.kt b/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseUuidIdEntity.kt index 673c726..e6b5b34 100644 --- a/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseUuidIdEntity.kt +++ b/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseUuidIdEntity.kt @@ -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 + } }