Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HQL - COUNT - GROUP BY Pojo  RSS feed

 
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
Boost this thread!