This commit is contained in:
Redkale
2017-06-07 09:38:57 +08:00
parent ea6c703ac6
commit 2d6cefeb43

View File

@@ -199,6 +199,7 @@ public final class EntityInfo<T> {
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);