From 4ef9c61201409e97a57baf05a8705254a82ff926 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Sun, 15 Dec 2024 23:07:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E4=BF=AE=E5=A4=8Dware=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E9=80=BB=E8=BE=91=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/eshore/gringotts/web/domain/entity/Ware.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/entity/Ware.java b/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/entity/Ware.java index 58479a1..3adb2d7 100644 --- a/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/entity/Ware.java +++ b/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/entity/Ware.java @@ -2,7 +2,6 @@ package com.eshore.gringotts.web.domain.entity; import com.eshore.gringotts.core.Constants; import com.eshore.gringotts.web.domain.base.entity.LogicDeleteEntity; -import com.eshore.gringotts.web.domain.base.entity.SimpleEntity; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; @@ -49,7 +48,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener; }) @SQLDelete(sql = "update " + Constants.TABLE_PREFIX + "ware" + " set deleted = true where id = ?") @Where(clause = LogicDeleteEntity.LOGIC_DELETE_CLAUSE) -public class Ware extends SimpleEntity { +public class Ware extends LogicDeleteEntity { @OneToOne(cascade = CascadeType.DETACH, fetch = FetchType.EAGER) @JoinColumn(nullable = false, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @ToString.Exclude