Hibernate, Select DISTINCT on Oracle
Is there a way to define columns for SELECT DISTINCT object in HQL?
For example I execute next HQL - SELECT DISTINCT g FROM Group g;
Problem is - table GROUP contains BLOB field and Oracle doesn't like include BLOBs to DISTINCT request.
How can I exclude some fields from real SQL request ?