From e3c8bc3ae31e7d9aaee0e2c0f4d9c5183702b67f Mon Sep 17 00:00:00 2001 From: Brian Schlining Date: Tue, 16 Jul 2024 12:29:46 -0700 Subject: [PATCH] #6 - trying different cascade strategy --- .../java/org/mbari/oni/jpa/entities/ConceptMetadataEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oni/src/main/java/org/mbari/oni/jpa/entities/ConceptMetadataEntity.java b/oni/src/main/java/org/mbari/oni/jpa/entities/ConceptMetadataEntity.java index 17a500d..f1bc1e5 100644 --- a/oni/src/main/java/org/mbari/oni/jpa/entities/ConceptMetadataEntity.java +++ b/oni/src/main/java/org/mbari/oni/jpa/entities/ConceptMetadataEntity.java @@ -50,7 +50,7 @@ public class ConceptMetadataEntity implements Serializable, IPersistentObject { @OneToOne( optional = false, targetEntity = ConceptEntity.class, - cascade = {CascadeType.MERGE, CascadeType.REFRESH, CascadeType.DETACH}, + cascade = {CascadeType.DETACH}, fetch = FetchType.LAZY ) @JoinColumn(