提交 56f965ad 作者: 方治民

fix: 使用 @SQLDeleteAll 导致启动异常问题

上级 07aa6f6b
...@@ -17,7 +17,6 @@ import lombok.experimental.FieldNameConstants; ...@@ -17,7 +17,6 @@ import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where; import org.hibernate.annotations.Where;
/** /**
...@@ -35,7 +34,7 @@ import org.hibernate.annotations.Where; ...@@ -35,7 +34,7 @@ import org.hibernate.annotations.Where;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@SQLDelete(sql = DELETE_SQL + BasicEntity.Where.WHERE_ID) @SQLDelete(sql = DELETE_SQL + BasicEntity.Where.WHERE_ID)
@SQLDeleteAll(sql = DELETE_SQL) //@SQLDeleteAll(sql = DELETE_SQL)
@Where(clause = BasicEntity.Where.EXIST) @Where(clause = BasicEntity.Where.EXIST)
@Entity @Entity
@Table( @Table(
......
...@@ -18,7 +18,6 @@ import lombok.experimental.FieldNameConstants; ...@@ -18,7 +18,6 @@ import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where; import org.hibernate.annotations.Where;
/** /**
...@@ -36,7 +35,7 @@ import org.hibernate.annotations.Where; ...@@ -36,7 +35,7 @@ import org.hibernate.annotations.Where;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@SQLDelete(sql = Permission.DELETE_SQL + BasicEntity.Where.WHERE_ID) @SQLDelete(sql = Permission.DELETE_SQL + BasicEntity.Where.WHERE_ID)
@SQLDeleteAll(sql = Permission.DELETE_SQL) //@SQLDeleteAll(sql = Permission.DELETE_SQL)
@Where(clause = BasicEntity.Where.EXIST) @Where(clause = BasicEntity.Where.EXIST)
@Entity @Entity
@Table( @Table(
......
...@@ -17,7 +17,6 @@ import lombok.experimental.FieldNameConstants; ...@@ -17,7 +17,6 @@ import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
/** /**
* 用户 * 用户
...@@ -34,7 +33,7 @@ import org.hibernate.annotations.SQLDeleteAll; ...@@ -34,7 +33,7 @@ import org.hibernate.annotations.SQLDeleteAll;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@SQLDelete(sql = Permission.DELETE_SQL + BasicEntity.Where.WHERE_ID) @SQLDelete(sql = Permission.DELETE_SQL + BasicEntity.Where.WHERE_ID)
@SQLDeleteAll(sql = Permission.DELETE_SQL) //@SQLDeleteAll(sql = Permission.DELETE_SQL)
@Entity @Entity
@Table( @Table(
name = User.TABLE_NAME, name = User.TABLE_NAME,
......
...@@ -17,7 +17,6 @@ import lombok.experimental.FieldNameConstants; ...@@ -17,7 +17,6 @@ import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
/** /**
* 分类字典 * 分类字典
...@@ -35,7 +34,7 @@ import org.hibernate.annotations.SQLDeleteAll; ...@@ -35,7 +34,7 @@ import org.hibernate.annotations.SQLDeleteAll;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@SQLDelete(sql = DELETE_SQL + BasicEntity.Where.WHERE_ID) @SQLDelete(sql = DELETE_SQL + BasicEntity.Where.WHERE_ID)
@SQLDeleteAll(sql = DELETE_SQL) //@SQLDeleteAll(sql = DELETE_SQL)
@Entity @Entity
@Table( @Table(
name = TABLE_NAME, name = TABLE_NAME,
......
...@@ -16,7 +16,6 @@ import lombok.experimental.FieldNameConstants; ...@@ -16,7 +16,6 @@ import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
/** /**
* 字典 * 字典
...@@ -34,7 +33,7 @@ import org.hibernate.annotations.SQLDeleteAll; ...@@ -34,7 +33,7 @@ import org.hibernate.annotations.SQLDeleteAll;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@SQLDelete(sql = Category.DELETE_SQL + BasicEntity.Where.WHERE_ID) @SQLDelete(sql = Category.DELETE_SQL + BasicEntity.Where.WHERE_ID)
@SQLDeleteAll(sql = Category.DELETE_SQL) //@SQLDeleteAll(sql = Category.DELETE_SQL)
@Entity @Entity
@Table( @Table(
name = TABLE_NAME, name = TABLE_NAME,
......
...@@ -14,7 +14,6 @@ import lombok.experimental.FieldNameConstants; ...@@ -14,7 +14,6 @@ import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
/** /**
* 字典选项 * 字典选项
...@@ -32,7 +31,7 @@ import org.hibernate.annotations.SQLDeleteAll; ...@@ -32,7 +31,7 @@ import org.hibernate.annotations.SQLDeleteAll;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@SQLDelete(sql = Category.DELETE_SQL + WHERE_ID) @SQLDelete(sql = Category.DELETE_SQL + WHERE_ID)
@SQLDeleteAll(sql = Category.DELETE_SQL) //@SQLDeleteAll(sql = Category.DELETE_SQL)
@Entity @Entity
@Table( @Table(
name = TABLE_NAME, name = TABLE_NAME,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论