This commit is contained in:
Redkale
2016-12-26 15:16:20 +08:00
parent af0726cd79
commit 08c5cbbbf3

View File

@@ -153,7 +153,7 @@ public final class EntityInfo<T> {
this.fullloader = loader;
} else {
this.fullloader = fullloader;
this.table = (t == null) ? type.getSimpleName().toLowerCase() : (t.catalog().isEmpty()) ? t.name() : (t.catalog() + '.' + t.name());
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);
DistributeTableStrategy dts = null;