HQL allows selection of constant values like _SELECT 2016, f.bar FROM Foo AS f_ but sometimes its required to use _SELECT :year, f.bar FROM Foo AS f_ because of separation of concern.
What if the parameter is a decimal, enum or else? As long its one of the hibernate types it should be possible to allow _SELECT :year ..._.
This is usefull when having dynamic queries with optional group by statements which are always mapped to a default bean using transformer. |
|