This commit is contained in:
Redkale
2019-10-28 13:14:38 +08:00
parent 5790135add
commit 40629ed7b9

View File

@@ -239,7 +239,7 @@ public final class EntityInfo<T> {
}
//---------------------------------------------
Table t = type.getAnnotation(Table.class);
if (type.getAnnotation(VirtualEntity.class) != null || "memory".equalsIgnoreCase(source.getType())) {
if (type.getAnnotation(VirtualEntity.class) != null || (source == null || "memory".equalsIgnoreCase(source.getType()))) {
this.table = null;
BiFunction<DataSource, Class, List> loader = null;
try {