Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

querying two tables using criteria

 
Manon Baratt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two tables that share the same heading_key column. I am using the following statement using criteria to retrieve the headingcode:

my xml files are defined:

customer:

Heading:

The query I get from hibernate is:

Which is what I want minus the second to the last line. What I am doing wrong?

Thanks for your help.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic