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 <w3n9@foxmail.com>

Commit message changed by Jens Schauder
This commit is contained in:
w3n9
2025-04-30 23:31:26 +08:00
committed by Jens Schauder
parent 83f70ffae6
commit 24a20cc4b1

View File

@@ -40,7 +40,7 @@ public abstract class AbstractEntity<ID> implements Persistable<ID> {
return isNew; <2>
}
@PrePersist <3>
@PostPersist <3>
@PostLoad
void markNotNew() {
this.isNew = false;