tags:

views:

16

answers:

1

Hi, any quick tip to implement findAllByGreaterThan so I can filter those records which date field is today (from 00:00 up to present).

Thanks in advance

A: 

Maybe something like (assuming Book is a domain class)

Book.findAll("from Book b where b.lastCheckedOut >= current_date()")

It may work as

Book.findAllGreaterThanEquals("current_date()")
ig0774