Grails 日期和时间日期范围限制?
我在谷歌上搜索了一会儿,试图找到这个问题的答案。我猜测答案可能是自定义约束,但无论如何我还是要问,Grails 是否支持日期约束的概念,类似于它支持电子邮件或信用卡约束的方式?
我认为拥有一个日期以及指定范围的标准方法会非常有用。
我在这里问是因为我似乎找不到有关此类约束的任何信息,尽管它似乎在 http://grails.org/doc/latest/ref/Constraints/range.html
谢谢!
I have been Googling for a bit trying to find the answer on this one. I am going to guess the answer might be a custom constraint, but I am going to ask anyway, whether Grails supports the notion of a Date constraint, similar to how it supports email or credit card constraints?
I was thinking it would be very useful to have a date and furthermore, a standard way to specify the range.
I am asking here because I can't seem to find any information on such a constraint, although it appears to be hinted at in http://grails.org/doc/latest/ref/Constraints/range.html
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)