Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

jason williams
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the article on Hibernate webiste - 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

I appreciate any help.

Thank in advice.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!