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

HQL - COUNT - GROUP BY Pojo

 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want a query like



I would like quantity field to set to a attribute in Customer called quantity. Quantity is not a DB field. How can i annotate the Customer Pojo and correct the query?
I want to avoid listing many attributes in Customer Object like so


[/code]

 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help here guys? is my question clear? i was hoping for a reply :-(
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic