• Post Reply Bookmark Topic Watch Topic
  • New Topic

Translate int returned by hql(select .class) to Class<?>

 
Serg Smith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I have hql query: "select ord.orderNumber, ordrelaxer.relaxerId, ord.legalPerson.class from Order ord". ord.legalPerson.class return value of type Integer. How can I translate this value to Class<?>?

Thanks.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!