更新时间:2023-09-23 08:14:16
Grails为字段域模型生成方法findBy ...和findAllBy ...。
假设你有域模型。$ b
$ b $ p $ class Foo {
日期日期
}
Foo.findAllByDateBetween(startDate,endDate)
I cannot do a simple MongoDB search for Date in MongoDB GORM.
Is there a way to do it?
Grails generate methods "findBy..." and "findAllBy..." for field domain model. Suppose you have domain model.
class Foo {
Date date
}
Foo.findAllByDateBetween(startDate, endDate)