This sounds a painfully simple question but I’m having the hardest time finding how I can grab all the entries that were updated today.
def today = new Date()
def q = "from UserMapping as u where u.updateTime like :today"
def updated = UserMapping.findAll(q, [today: today])
java.lang.String cannot be cast to java.util.Date. Stacktrace follows:
I’ve tried about 10 other ways but I can’t figure it out.
I solved it using:
If anyone has a more elegant method, please post it.