From b3aa1aeb2568c6fd84741b46d5b04a99a0a39777 Mon Sep 17 00:00:00 2001 From: Sebastian Jitaru Date: Thu, 7 Mar 2024 16:43:39 +0100 Subject: [PATCH] isActive initialized to false and made persistent --- src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java index 10fe7d19..172379c9 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java @@ -54,5 +54,6 @@ public class Shelter extends UriEntity { public void prePersist() { createdAt = ZonedDateTime.now(); updatedAt = ZonedDateTime.now(); + isActive = false; } } \ No newline at end of file