From 24a20cc4b147ca9a68df9dc4fe44b17eabf83958 Mon Sep 17 00:00:00 2001 From: w3n9 Date: Wed, 30 Apr 2025 23:31:26 +0800 Subject: [PATCH] Makes manually assigned id example simpler to understand. The old version was still valid but a little confusing. Original pull request #3865 Signed-off-by: w3n9 Commit message changed by Jens Schauder --- src/main/antora/modules/ROOT/pages/jpa/entity-persistence.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/antora/modules/ROOT/pages/jpa/entity-persistence.adoc b/src/main/antora/modules/ROOT/pages/jpa/entity-persistence.adoc index c5f8cb8de..990c95944 100644 --- a/src/main/antora/modules/ROOT/pages/jpa/entity-persistence.adoc +++ b/src/main/antora/modules/ROOT/pages/jpa/entity-persistence.adoc @@ -40,7 +40,7 @@ public abstract class AbstractEntity implements Persistable { return isNew; <2> } - @PrePersist <3> + @PostPersist <3> @PostLoad void markNotNew() { this.isNew = false;