I have one criterion, and I stuck to the following:
I use a sql server, so on my SQL server I have the following condition (Note: I do not put the whole query here. I just put my order by by).
order by (IIF(LEN(Code) = 1, '0'+Code ,Code))
"Code" is my column name. Now I want to implement it in sleep mode in the following
criteria.addOrder(Order.asc("CTC.code"));
Please help me achieve this. Any help would be appreciated.
source
share