You might check out TypeTools (which I authored) for this:
Class<T> t = (Class<T>)TypeResolver.resolveRawArgument(BaseDao.class, getClass());
You might check out TypeTools (which I authored) for this:
Class<T> t = (Class<T>)TypeResolver.resolveRawArgument(BaseDao.class, getClass());