From 2d6cefeb4356dff646b0908189bac5bae227761e Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Wed, 7 Jun 2017 09:38:57 +0800 Subject: [PATCH] --- src/org/redkale/source/EntityInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/redkale/source/EntityInfo.java b/src/org/redkale/source/EntityInfo.java index e6555f6ec..86cacf521 100644 --- a/src/org/redkale/source/EntityInfo.java +++ b/src/org/redkale/source/EntityInfo.java @@ -199,6 +199,7 @@ public final class EntityInfo { this.fullloader = loader; } else { this.fullloader = fullloader; + if (t != null && !t.name().isEmpty() && t.name().indexOf('.') >= 0) throw new RuntimeException(type + " have illegal table.name on @Table"); this.table = (t == null) ? type.getSimpleName().toLowerCase() : (t.catalog().isEmpty()) ? t.name() : (t.catalog() + '.' + (t.name().isEmpty() ? type.getSimpleName().toLowerCase() : t.name())); } DistributeTable dt = type.getAnnotation(DistributeTable.class);