Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help With HQL Query

 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone help me with an HQL query? Right now, I'm getting a list of "ItemModel" classes which are restricted to a given "ItemType". I then iterate through the ItemModel, extract the Manufacturer into a separate list, sort it, then return it.

I can't help thinking I could do this all in one HQL query, but can't figure it out.

Here's the code (using Spring DetachedCriteria):

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, how would you write that query in SQL?

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic