Class PostgreSQLMinMaxFunction

All Implemented Interfaces:
FunctionRenderer, SqmFunctionDescriptor

public class PostgreSQLMinMaxFunction extends AbstractSqmSelfRenderingFunctionDescriptor
PostgreSQL doesn't support min/max for uuid yet, but since that type is comparable we want to support this operation. The workaround is to cast uuid to text and aggregate that, which preserves the ordering, and finally cast the result back to uuid.