1. 首页
  2. 编程语言
  3. Java
  4. HibernateCommonDAO

HibernateCommonDAO

上传者: 2018-12-20 08:39:45上传 JAVA文件 1.07KB 热度 17次
private Class entityClass; public HibernateCommonDAO() { Type type = getClass().getGenericSuperclass(); if (type instanceof ParameterizedType) { Type[] types = ((ParameterizedType) type).getActualTypeArguments(); entityClass = (Class)types[0]; } }
下载地址
用户评论