HibernateCommonDAO
private Class entityClass; public HibernateCommonDAO() { Type type = getClass().getGenericSuperclass(); if (type instanceof ParameterizedType) { Type[] types = ((ParameterizedType) type).getActualTypeArguments(); entityClass = (Class)types[0]; } }
下载地址
用户评论