Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 297
Abu Bakar Siddik Avatar asked Nov 29 '16 07:11

Abu Bakar Siddik


1 Answers

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

Hope it helps.

like image 130
eltabo Avatar answered Nov 06 '22 23:11

eltabo