• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Probelm with Hibernate Criteria Query

 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am unable to retrieve the data for this particular criteria query.




error is :



please help me out in this issue.
I have been trying since two days but i could not figure it out what mistake i am doing.

thanks for the answers in advance.
Venkata
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Execute your query, but hold the result as an object. Then inspect the object type with a simple getClass call. What is the object type of the data that is returned? It looks like it's not what is expected by the return clause.

-Cameron McKenzie
 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



for this query it is working fine. But when we are using more than one table to compare few columns it is not working, even if the result set of both the queries are same object types.

It still did not help me yet.
Thanks for the quick response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic