File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"select new Constructor" in HQL

 
nimo frey
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a strange failure:

I have a constructor with fullfills this:



(intValueA, intValueB are Integers)

this works.

This works, too:



But when I use the sum-aggregation:



this failure occurs:



My Constructor:




Why does my Constructor not work, when I use the SUM-Aggregation???
 
nimo frey
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, solved.

The datatypes were wrong. I have used Integer instead of Long.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic