• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType

 
jason williams
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the article on Hibernate webiste - https://www.hibernate.org/328.html and practise to test if my concept is correcet or not. However, I always obtained the following error message



The code includes







No matter whether I switch to use the way the article discuss or the one I try (in Child constructor), it all fails. I think I have problem with the concept, but no idea where I make mistakes. Is the constructor trying to obtain the type in super class (i.e. T in Father.java)?

I appreciate any help.

Thank in advice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic