[英]How to create method name using After and Equals in Spring Data JPA?
I need your help to my problem. 我需要你帮助解决我的问题。 I can't create method name following this documentation. 我无法在此文档后创建方法名称。 I want to query date by this method. 我想通过这种方法查询日期。
I want like this query : 我想要这样的查询:
SELECT * FROM app_basic where app_end_date>='2016-11-29';
In following Spring documentation After
keyword work fine. 在下面的Spring文档After
关键字做工精细。 But I need After
and Equals
in method name convention using Spring Data jpa. 但是我需要使用Spring Data jpa在方法名称约定中使用After
和Equals
。
So, how can I create this method ? 那么,我该如何创建这个方法呢? Please, help me. 请帮我。
Thanks. 谢谢。
You can use LessThan, GreaterThan, LessThanEqual, GreaterThanEqual also with dates. 您可以使用LessThan,GreaterThan,LessThanEqual,GreaterThanEqual以及日期。
Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.