简体   繁体   中英

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. But I need After and Equals in method name convention using Spring Data jpa.

So, how can I create this method ? Please, help me.

Thanks.

You can use LessThan, GreaterThan, LessThanEqual, GreaterThanEqual also with dates.

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM