2010-04-06 22 views
0

任何快速提示來實現findAllByGreaterThan,所以我可以過濾那些日期字段是今天(從00:00到現在)的記錄。Gorm findallby date tip

在此先感謝

回答

1

也許像(假設書是一個域類)

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

它可以作爲

Book.findAllGreaterThanEquals("current_date()") 
工作