This commit is contained in:
Redkale
2017-03-26 14:15:36 +08:00
parent b77050250c
commit 679567c85a

View File

@@ -264,6 +264,7 @@ public final class EntityInfo<T> {
attributeMap.put(fieldname, attr);
}
} while ((cltmp = cltmp.getSuperclass()) != Object.class);
if (idAttr0 == null) throw new RuntimeException(type.getName() + " have no primary column by @javax.persistence.Id");
this.primary = idAttr0;
this.aliasmap = aliasmap0;
this.attributes = attributeMap.values().toArray(new Attribute[attributeMap.size()]);