• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: Problem with nested object criterias

 
Markus Svensson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm having problems with a Hibernate criteria. I'm trying to make a Criteria where I look at the id of a member object of the class the query returns.

For example:


The result of this is an exception:


The Enquiry class does contain the lecture variable, which in turn contains the admin variable.
I have tried using lecture.id and that works fine.

Is there a limit to the number of levels you can go down the object hierarchy like this?

Thanks!

Regards,
Markus Svensson
 
Markus Svensson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to this problem is here in case someone else has need for a solution.

Regards,
Markus
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic