views:

102

answers:

0

Hi,

I want to write a hibernate criteria to do the same job as normal sql statement like this:

select * from XXX where XXX order by length(name) desc.

Whats the best way to do this and how can I do? Thanks in advance!