Domain Class:
class Record {
Date date
Integer days
}
Code:
def record.createCriteria().list {
order( "DATE_ADD( date, INTERVAL days DAY )", "asc" )
}
Question:
Obviously this doesn't work, but I need to know if there is a way to order by date + days using createCriteria.
Thank you :)