Recently, I faced up a problem in my project. I tried to use generic type in my project, but when it came to the hibernate hql, I can not get the generic type. Following is the solution:
Let’s begin
Step 1:
Suppose I have a normal class like findById.
1 | @Override |