• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Criteria query problem

 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am not able to apply restrictions like :




This is giving me a following exception :

org.hibernate.QueryException: could not resolve property: component.scheme.id of: com.nextenders.client.beans.template.Template

How can I overcome this problem?

Thanks...




 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I should elaborate more on problem


Now I want to execute query like:




But I think this is not supported in Hibernate.

Can anybody provide me a better solution for it?'

Thanks....
 
Abubacker Siddik
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The prop.color.id implies that you are using implicit associations. SO can you paste your pojo files?



Abu.A
 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abu,

My Pojo's are just identical to what I have provided in my previous post.

It will also do if I can set restrictions like



Right now I have found solution by using HQL outer joins with some Criteria manipulation.

Thanks..

 
Abubacker Siddik
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic