Skip to content
Advertisement

Transform SQL to Hibernate criteria

I am writing a method for retrieving clients with sum of their orders (order.total) higher and less than input values.

JavaScript

All its okay, but, sometimes i am get an error:

JavaScript

How can i correcting this method, or, maybe, convert this in full criteria style?

Advertisement

Answer

In the end, i solved this problem by this way, using sql restriction:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement