* @return Meta data containing entity and primary key classes.
*/
public static DaoEntity extractEntityMetaData(Class<?> daoClass) {
log.debugv("extractEntityMetaData: class = {0}", daoClass);
// TODO in AnnotationMetadataExtractor
DaoEntity fromAnnotation = extractFromAnnotation(daoClass);
if (fromAnnotation != null) {
return fromAnnotation;
}
// TODO in TypeMetadataExtractor
for (Type inf : daoClass.getGenericInterfaces()) {
DaoEntity result = extractFrom(inf);
if (result != null) {
return result;
}
}
DaoEntity result = extractFrom(daoClass.getGenericSuperclass());
if (result != null) {
return result;
}
for (Type intf : daoClass.getGenericInterfaces()) {
result = extractFrom(intf);