xain
xain

Reputation: 13839

Gorm findallby date tip

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

Upvotes: 0

Views: 1258

Answers (1)

ig0774
ig0774

Reputation: 41267

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()")

Upvotes: 1

Related Questions