From 57d3f623dda00012603ffdffffbab45527d843ef Mon Sep 17 00:00:00 2001 From: wtune <59522871+wtune@users.noreply.github.com> Date: Fri, 13 Mar 2020 16:22:30 +0800 Subject: [PATCH] Add index dict.name in Dict.java --- .../src/main/java/me/zhengjie/modules/system/domain/Dict.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/Dict.java b/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/Dict.java index cbdde2c4..d0db7c08 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/Dict.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/Dict.java @@ -18,7 +18,7 @@ import java.util.List; @Entity @Getter @Setter -@Table(name="dict") +@Table(name="dict", indexs={@Index=(name="idx_name", columnList="name")}) public class Dict implements Serializable { @Id @@ -42,4 +42,4 @@ public class Dict implements Serializable { private List dictDetails; public @interface Update {} -} \ No newline at end of file +}