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 ?

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com