2010-04-06 6 views
0

findAllByGreaterThan을 구현하는 빠른 팁이 있으므로 오늘 날짜 필드 (00:00에서 현재까지)를 필터링 할 수 있습니다. 사전에Gorm findallby date tip

감사

답변

1

그것은

Book.findAllGreaterThanEquals("current_date()") 
으로 작동 할 수

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

아마 같은 (가정 도서는 도메인 클래스)