Gavin King wrote:
Your usecase can be handled by implementing Projection with your own
class.

It is absolutely possible with no change to the criteria API.
Might be, but then I cant reuse already existing projections.
How should I reuse "Projections.avg(" if it tries in toSqlString to resolve the column by property name.

I though it would be a nice addition to clarify the api in this area.

E.g. It can also be possible to do Expression.ge(Functions.sum("column"), 10) then. If we keep the old methods (those with string as argument, we can be backward compatible)


---
Mario



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to