Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Map-valued collections in HQL queries

 
Alex Gr´┐Żnholm
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The above HQL query does not work, because Hibernate fails to connect the "cat" alias in the GROUP BY clause to the one being selected.
According to the Hibernate manual, it should be possible to give a function result an alias. However, Hibernate does not translate it to its proper value in the native SQL query.
What am I doing wrong?

The PurchaseInvoice class has:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic